Enum shred::AccessorCow
source · pub enum AccessorCow<'a, 'b, T>where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + ?Sized,
'a: '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§
source§impl<'a, 'b, T> Deref for AccessorCow<'a, 'b, T>where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + ?Sized + 'b,
'a: 'b,
impl<'a, 'b, T> Deref for AccessorCow<'a, 'b, T>where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + ?Sized + 'b,
'a: '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.
source§fn 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> Freeze for AccessorCow<'a, 'b, T>
impl<'a, 'b, T> RefUnwindSafe for AccessorCow<'a, 'b, T>
impl<'a, 'b, T> Send for AccessorCow<'a, 'b, T>
impl<'a, 'b, T> Sync for AccessorCow<'a, 'b, T>
impl<'a, 'b, T> Unpin for AccessorCow<'a, 'b, T>
impl<'a, 'b, T> UnwindSafe for AccessorCow<'a, 'b, T>where
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: UnwindSafe + RefUnwindSafe,
T: ?Sized,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more