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§
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§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more