pub struct OptionRead<T: Component>(/* private fields */);Expand description
Fetch marker: yields Option<&'w T> (entity need not have T).
Trait Implementations§
Source§impl<T: Component> WorldQuery for OptionRead<T>
impl<T: Component> WorldQuery for OptionRead<T>
Source§fn required_types() -> Vec<TypeId>
fn required_types() -> Vec<TypeId>
Required component
TypeIds (must all be present in the archetype).Auto Trait Implementations§
impl<T> Freeze for OptionRead<T>
impl<T> RefUnwindSafe for OptionRead<T>where
T: RefUnwindSafe,
impl<T> Send for OptionRead<T>
impl<T> Sync for OptionRead<T>
impl<T> Unpin for OptionRead<T>where
T: Unpin,
impl<T> UnsafeUnpin for OptionRead<T>
impl<T> UnwindSafe for OptionRead<T>where
T: UnwindSafe,
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