Struct MsdfGlyphMetrics
#[repr(C)]pub struct MsdfGlyphMetrics {
pub codepoint: u32,
pub advance_em: f32,
pub plane_left_em: f32,
pub plane_top_em: f32,
pub plane_width_em: f32,
pub plane_height_em: f32,
pub uv_rect: [f32; 4],
}Expand description
Normalized glyph metrics for a single codepoint in the MSDF font atlas (normalized to 1.0 em).
Fields§
§codepoint: u32Unicode scalar value (u32).
advance_em: f32Horizontal advance width in em units.
plane_left_em: f32Horizontal bearing offset from pen X in em units.
plane_top_em: f32Vertical bearing offset from top of line box in em units.
plane_width_em: f32Quad width in em units.
plane_height_em: f32Quad height in em units.
uv_rect: [f32; 4]Atlas UV rectangle [u_min, v_min, u_max, v_max].
Trait Implementations§
§impl Clone for MsdfGlyphMetrics
impl Clone for MsdfGlyphMetrics
§fn clone(&self) -> MsdfGlyphMetrics
fn clone(&self) -> MsdfGlyphMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MsdfGlyphMetrics
§impl Debug for MsdfGlyphMetrics
impl Debug for MsdfGlyphMetrics
§impl PartialEq for MsdfGlyphMetrics
impl PartialEq for MsdfGlyphMetrics
impl Pod for MsdfGlyphMetrics
impl StructuralPartialEq for MsdfGlyphMetrics
Auto Trait Implementations§
impl Freeze for MsdfGlyphMetrics
impl RefUnwindSafe for MsdfGlyphMetrics
impl Send for MsdfGlyphMetrics
impl Sync for MsdfGlyphMetrics
impl Unpin for MsdfGlyphMetrics
impl UnsafeUnpin for MsdfGlyphMetrics
impl UnwindSafe for MsdfGlyphMetrics
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more