pub struct PrimitiveId(/* private fields */);Expand description
A stable identifier for an avatar render primitive.
Implementations§
Source§impl PrimitiveId
impl PrimitiveId
Sourcepub const fn from_index(index: usize) -> Self
pub const fn from_index(index: usize) -> Self
Creates an identifier from an index supplied to an asset builder.
crate::AvatarAssetBuilder::build rejects identifiers that do
not resolve inside the completed asset.
Trait Implementations§
Source§impl Clone for PrimitiveId
impl Clone for PrimitiveId
impl Copy for PrimitiveId
Source§impl Debug for PrimitiveId
impl Debug for PrimitiveId
Source§impl Display for PrimitiveId
impl Display for PrimitiveId
impl Eq for PrimitiveId
Source§impl Hash for PrimitiveId
impl Hash for PrimitiveId
Source§impl Ord for PrimitiveId
impl Ord for PrimitiveId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PrimitiveId
impl PartialEq for PrimitiveId
Source§impl PartialOrd for PrimitiveId
impl PartialOrd for PrimitiveId
impl StructuralPartialEq for PrimitiveId
Auto Trait Implementations§
impl Freeze for PrimitiveId
impl RefUnwindSafe for PrimitiveId
impl Send for PrimitiveId
impl Sync for PrimitiveId
impl Unpin for PrimitiveId
impl UnsafeUnpin for PrimitiveId
impl UnwindSafe for PrimitiveId
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