pub struct FontDescription {
pub family: String,
pub style: Option<String>,
}
Expand description
Description of the normal font
Fields§
§family: String
§style: Option<String>
Trait Implementations§
Source§impl Clone for FontDescription
impl Clone for FontDescription
Source§fn clone(&self) -> FontDescription
fn clone(&self) -> FontDescription
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 FontDescription
impl Debug for FontDescription
Source§impl Default for FontDescription
impl Default for FontDescription
Source§fn default() -> FontDescription
fn default() -> FontDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontDescriptionwhere
FontDescription: Default,
impl<'de> Deserialize<'de> for FontDescriptionwhere
FontDescription: Default,
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 PartialEq for FontDescription
impl PartialEq for FontDescription
impl Eq for FontDescription
impl StructuralPartialEq for FontDescription
Auto Trait Implementations§
impl Freeze for FontDescription
impl RefUnwindSafe for FontDescription
impl Send for FontDescription
impl Sync for FontDescription
impl Unpin for FontDescription
impl UnwindSafe for FontDescription
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)