pub struct DefineFont {
pub id: u16,
pub font_name: String,
pub is_bold: bool,
pub is_italic: bool,
pub is_ansi: bool,
pub is_small: bool,
pub is_shift_jis: bool,
pub em_square_size: EmSquareSize,
pub language: LanguageCode,
pub glyphs: Option<Vec<Glyph>>,
pub code_units: Option<Vec<u16>>,
pub layout: Option<FontLayout>,
}
Fields§
§id: u16
§font_name: String
§is_bold: bool
§is_italic: bool
§is_ansi: bool
§is_small: bool
§is_shift_jis: bool
§em_square_size: EmSquareSize
§language: LanguageCode
§glyphs: Option<Vec<Glyph>>
§code_units: Option<Vec<u16>>
§layout: Option<FontLayout>
Trait Implementations§
Source§impl Clone for DefineFont
impl Clone for DefineFont
Source§fn clone(&self) -> DefineFont
fn clone(&self) -> DefineFont
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 DefineFont
impl Debug for DefineFont
Source§impl<'de> Deserialize<'de> for DefineFont
impl<'de> Deserialize<'de> for DefineFont
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DefineFont
impl Hash for DefineFont
Source§impl Ord for DefineFont
impl Ord for DefineFont
Source§fn cmp(&self, other: &DefineFont) -> Ordering
fn cmp(&self, other: &DefineFont) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefineFont
impl PartialEq for DefineFont
Source§impl PartialOrd for DefineFont
impl PartialOrd for DefineFont
Source§impl Serialize for DefineFont
impl Serialize for DefineFont
impl Eq for DefineFont
impl StructuralPartialEq for DefineFont
Auto Trait Implementations§
impl Freeze for DefineFont
impl RefUnwindSafe for DefineFont
impl Send for DefineFont
impl Sync for DefineFont
impl Unpin for DefineFont
impl UnwindSafe for DefineFont
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