pub struct GlyphInstance {
pub index: u32,
pub point: LogicalPosition,
pub size: LogicalSize,
}
Fields§
§index: u32
§point: LogicalPosition
§size: LogicalSize
Implementations§
Source§impl GlyphInstance
impl GlyphInstance
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for GlyphInstance
impl Clone for GlyphInstance
Source§fn clone(&self) -> GlyphInstance
fn clone(&self) -> GlyphInstance
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlyphInstance
impl Debug for GlyphInstance
Source§impl Default for GlyphInstance
impl Default for GlyphInstance
Source§fn default() -> GlyphInstance
fn default() -> GlyphInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlyphInstance
impl PartialEq for GlyphInstance
Source§impl PartialOrd for GlyphInstance
impl PartialOrd for GlyphInstance
impl Copy for GlyphInstance
impl StructuralPartialEq for GlyphInstance
Auto Trait Implementations§
impl Freeze for GlyphInstance
impl RefUnwindSafe for GlyphInstance
impl Send for GlyphInstance
impl Sync for GlyphInstance
impl Unpin for GlyphInstance
impl UnwindSafe for GlyphInstance
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IsDefault for T
impl<T> IsDefault for T
Source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.