pub struct NameOrEntityItem<'__w, '__s> {
pub name: <Option<&'static Name> as QueryData>::Item<'__w, '__s>,
pub entity: <Entity as QueryData>::Item<'__w, '__s>,
}Expand description
Automatically generated WorldQuery item type for NameOrEntity, returned when iterating over query results.
Fields§
§name: <Option<&'static Name> as QueryData>::Item<'__w, '__s>A Name that the entity might have that is displayed if available.
entity: <Entity as QueryData>::Item<'__w, '__s>The unique identifier of the entity as a fallback.
Trait Implementations§
Source§impl<'__w, '__s> Debug for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> Debug for NameOrEntityItem<'__w, '__s>
Auto Trait Implementations§
impl<'__w, '__s> Freeze for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> RefUnwindSafe for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> Send for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> Sync for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> Unpin for NameOrEntityItem<'__w, '__s>
impl<'__w, '__s> UnwindSafe for NameOrEntityItem<'__w, '__s>
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.