Enum basalt::atlas::SubImageCacheID
source · [−]pub enum SubImageCacheID {
Path(PathBuf),
Url(String),
Glyph {
family: String,
weight: ImtWeight,
height: OrderedFloat<f32>,
code: u16,
},
None,
}
Expand description
Cache ID used for stored images in the Atlas
.
Variants
Path(PathBuf)
Url(String)
Glyph
None
Implementations
Trait Implementations
sourceimpl Clone for SubImageCacheID
impl Clone for SubImageCacheID
sourcefn clone(&self) -> SubImageCacheID
fn clone(&self) -> SubImageCacheID
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SubImageCacheID
impl Debug for SubImageCacheID
sourceimpl Default for SubImageCacheID
impl Default for SubImageCacheID
sourcefn default() -> SubImageCacheID
fn default() -> SubImageCacheID
Returns the “default value” for a type. Read more
sourceimpl Hash for SubImageCacheID
impl Hash for SubImageCacheID
sourceimpl PartialEq<SubImageCacheID> for SubImageCacheID
impl PartialEq<SubImageCacheID> for SubImageCacheID
sourcefn eq(&self, other: &SubImageCacheID) -> bool
fn eq(&self, other: &SubImageCacheID) -> bool
impl Eq for SubImageCacheID
impl StructuralEq for SubImageCacheID
impl StructuralPartialEq for SubImageCacheID
Auto Trait Implementations
impl RefUnwindSafe for SubImageCacheID
impl Send for SubImageCacheID
impl Sync for SubImageCacheID
impl Unpin for SubImageCacheID
impl UnwindSafe for SubImageCacheID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.