pub struct SkinId(/* private fields */);Expand description
A stable identifier for an avatar skin.
Implementations§
Source§impl SkinId
impl SkinId
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§
impl Copy for SkinId
impl Eq for SkinId
Source§impl Ord for SkinId
impl Ord for SkinId
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 PartialOrd for SkinId
impl PartialOrd for SkinId
impl StructuralPartialEq for SkinId
Auto Trait Implementations§
impl Freeze for SkinId
impl RefUnwindSafe for SkinId
impl Send for SkinId
impl Sync for SkinId
impl Unpin for SkinId
impl UnsafeUnpin for SkinId
impl UnwindSafe for SkinId
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