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