#[repr(C)]pub struct Glyph {
pub scaler: f32,
pub width: u32,
pub height: u32,
pub line_count: u32,
pub bounds: [f32; 4],
pub offset: [f32; 2],
}
Fields
scaler: f32
width: u32
height: u32
line_count: u32
bounds: [f32; 4]
offset: [f32; 2]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
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
sourceimpl<T> BufferContents for Twhere
T: Pod + Send + Sync,
impl<T> BufferContents for Twhere
T: Pod + Send + Sync,
sourcefn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Converts an immutable reference to
Self
to an immutable byte slice.sourcefn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Converts a mutable reference to
Self
to an mutable byte slice.sourcefn from_bytes(bytes: &[u8]) -> Result<&T, PodCastError>
fn from_bytes(bytes: &[u8]) -> Result<&T, PodCastError>
Converts an immutable byte slice into an immutable reference to
Self
.sourcefn from_bytes_mut(bytes: &mut [u8]) -> Result<&mut T, PodCastError>
fn from_bytes_mut(bytes: &mut [u8]) -> Result<&mut T, PodCastError>
Converts a mutable byte slice into a mutable reference to
Self
.sourcefn size_of_element() -> u64
fn size_of_element() -> u64
Returns the size of an element of the type.
sourceimpl<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
. Read more