pub struct FaceId(pub u32);
Expand description
Font face identifier
Identifies a loaded font face within the FontLibrary
by index.
Internally this uses a numeric identifier, which is always less than
FontLibrary::num_faces
, assuming that at least one font has been loaded.
FontLibrary::face_data
may be used to retrieve the matching font.
Tuple Fields
0: u32
Implementations
Trait Implementations
sourceimpl PartialEq<FaceId> for FaceId
impl PartialEq<FaceId> for FaceId
impl Copy for FaceId
impl Eq for FaceId
impl StructuralEq for FaceId
impl StructuralPartialEq for FaceId
Auto Trait Implementations
impl RefUnwindSafe for FaceId
impl Send for FaceId
impl Sync for FaceId
impl Unpin for FaceId
impl UnwindSafe for FaceId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<S, T> CastApprox<T> for S where
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for S where
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self
to T
Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self
to T
Read more
sourceimpl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more