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