#[non_exhaustive]pub struct Substitute {
pub family: Family,
pub sample_advance: f64,
pub shx: bool,
}Expand description
a font’s stand-in
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.family: Family§sample_advance: f64the original’s advance of the sample “a..z A..Z 0..9” (62 characters) in cap heights; 0: keep the substitute’s width
shx: boolan SHX font (single strokes) or a shape file
Trait Implementations§
Source§impl Clone for Substitute
impl Clone for Substitute
impl Copy for Substitute
Source§impl Debug for Substitute
impl Debug for Substitute
Source§impl PartialEq for Substitute
impl PartialEq for Substitute
impl StructuralPartialEq for Substitute
Auto Trait Implementations§
impl Forget for Substitute
impl Freeze for Substitute
impl Move for Substitute
impl RefUnwindSafe for Substitute
impl Send for Substitute
impl Sync for Substitute
impl Unpin for Substitute
impl UnsafeUnpin for Substitute
impl UnwindSafe for Substitute
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