pub enum AccessorCow<'a, 'b, T>where
'a: 'b,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + ?Sized,{
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
'a: 'b,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + 'b + ?Sized,
impl<'a, 'b, T> Deref for AccessorCow<'a, 'b, T>where
'a: 'b,
<<T as System<'a>>::SystemData as DynamicSystemData<'a>>::Accessor: 'b,
T: System<'a> + 'b + ?Sized,
Source§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more