pub struct Id(/* private fields */);
Expand description
An Identifier for what could represent either what Entity
as well as an ECS relationship pair and can have optional id flags.
Ids are the things that can be added to an entity.
Implementations§
Source§impl Id
impl Id
pub fn new(id: u64) -> Self
Sourcepub fn entity_view<'a>(&self, world: impl WorldProvider<'a>) -> EntityView<'a>
pub fn entity_view<'a>(&self, world: impl WorldProvider<'a>) -> EntityView<'a>
Trait Implementations§
Source§impl<'a> From<EntityView<'a>> for Id
impl<'a> From<EntityView<'a>> for Id
Source§fn from(view: EntityView<'a>) -> Self
fn from(view: EntityView<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<UntypedComponent<'a>> for Id
impl<'a> From<UntypedComponent<'a>> for Id
Source§fn from(component: UntypedComponent<'a>) -> Self
fn from(component: UntypedComponent<'a>) -> Self
Converts to this type from the input type.
Source§impl Ord for Id
impl Ord for Id
Source§impl<'a> PartialEq<EntityView<'a>> for Id
impl<'a> PartialEq<EntityView<'a>> for Id
Source§impl PartialEq<Id> for EntityView<'_>
impl PartialEq<Id> for EntityView<'_>
Source§impl<'a> PartialEq<Id> for UntypedComponent<'a>
impl<'a> PartialEq<Id> for UntypedComponent<'a>
Source§impl<'a> PartialEq<UntypedComponent<'a>> for Id
impl<'a> PartialEq<UntypedComponent<'a>> for Id
Source§impl<'a, T> PartialOrd<Component<'a, T>> for Idwhere
T: ComponentId,
impl<'a, T> PartialOrd<Component<'a, T>> for Idwhere
T: ComponentId,
Source§impl PartialOrd<Entity> for Id
impl PartialOrd<Entity> for Id
Source§impl<'a> PartialOrd<EntityView<'a>> for Id
impl<'a> PartialOrd<EntityView<'a>> for Id
Source§impl<'a, T: ComponentId> PartialOrd<Id> for Component<'a, T>
impl<'a, T: ComponentId> PartialOrd<Id> for Component<'a, T>
Source§impl PartialOrd<Id> for Entity
impl PartialOrd<Id> for Entity
Source§impl<'a> PartialOrd<Id> for EntityView<'a>
impl<'a> PartialOrd<Id> for EntityView<'a>
Source§impl<'a> PartialOrd<Id> for IdView<'a>
impl<'a> PartialOrd<Id> for IdView<'a>
Source§impl<'a> PartialOrd<Id> for UntypedComponent<'a>
impl<'a> PartialOrd<Id> for UntypedComponent<'a>
Source§impl PartialOrd<Id> for u64
impl PartialOrd<Id> for u64
Source§impl<'a> PartialOrd<IdView<'a>> for Id
impl<'a> PartialOrd<IdView<'a>> for Id
Source§impl<'a> PartialOrd<UntypedComponent<'a>> for Id
impl<'a> PartialOrd<UntypedComponent<'a>> for Id
Source§impl PartialOrd<u64> for Id
impl PartialOrd<u64> for Id
Source§impl PartialOrd for Id
impl PartialOrd for Id
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more