Enum specs::AccessorCow
source · [−]pub enum AccessorCow<'a, 'b, T> where
'a: 'b,
T: System<'a> + ?Sized,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b, {
Ref(&'b <<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor),
Owned(<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor),
}
Expand description
Either an Accessor
of the system T
or a reference to it.
Variants
Ref(&'b <<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor)
A reference to an accessor.
Owned(<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor)
An owned accessor.
Trait Implementations
sourceimpl<'a, 'b, T> Deref for AccessorCow<'a, 'b, T> where
'a: 'b,
T: 'b + System<'a> + ?Sized,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
impl<'a, 'b, T> Deref for AccessorCow<'a, 'b, T> where
'a: 'b,
T: 'b + System<'a> + ?Sized,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
type Target = <<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor
type Target = <<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor
The resulting type after dereferencing.
sourcefn deref(
&self
) -> &<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor
fn deref(
&self
) -> &<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor
Dereferences the value.
Auto Trait Implementations
impl<'a, 'b, T: ?Sized> RefUnwindSafe for AccessorCow<'a, 'b, T> where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: RefUnwindSafe,
impl<'a, 'b, T: ?Sized> Send for AccessorCow<'a, 'b, T> where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: Send + Sync,
impl<'a, 'b, T: ?Sized> Sync for AccessorCow<'a, 'b, T> where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: Sync,
impl<'a, 'b, T: ?Sized> Unpin for AccessorCow<'a, 'b, T> where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: Unpin,
impl<'a, 'b, T: ?Sized> UnwindSafe for AccessorCow<'a, 'b, T> where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more