pub struct PretextFontDescriptor {
pub size: f64,
pub primary_family: String,
pub weight: i32,
pub italic: bool,
}Expand description
The CSS-like font subset accepted by text preparation backends.
Fields§
§size: f64§primary_family: String§weight: i32§italic: boolImplementations§
Trait Implementations§
Source§impl Clone for PretextFontDescriptor
impl Clone for PretextFontDescriptor
Source§fn clone(&self) -> PretextFontDescriptor
fn clone(&self) -> PretextFontDescriptor
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 moreSource§impl Debug for PretextFontDescriptor
impl Debug for PretextFontDescriptor
Source§impl Default for PretextFontDescriptor
impl Default for PretextFontDescriptor
Source§fn default() -> PretextFontDescriptor
fn default() -> PretextFontDescriptor
Returns the “default value” for a type. Read more
Source§impl PartialEq for PretextFontDescriptor
impl PartialEq for PretextFontDescriptor
impl StructuralPartialEq for PretextFontDescriptor
Auto Trait Implementations§
impl Freeze for PretextFontDescriptor
impl RefUnwindSafe for PretextFontDescriptor
impl Send for PretextFontDescriptor
impl Sync for PretextFontDescriptor
impl Unpin for PretextFontDescriptor
impl UnsafeUnpin for PretextFontDescriptor
impl UnwindSafe for PretextFontDescriptor
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