pub enum NamedFont {
Monospace,
Serif,
SansSerif,
Named {
value: String,
},
}
Variants
Monospace
Serif
SansSerif
Named
Fields
value: String
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for NamedFont
impl<'de> Deserialize<'de> for NamedFont
sourcefn 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
sourceimpl PartialEq<NamedFont> for NamedFont
impl PartialEq<NamedFont> for NamedFont
impl StructuralPartialEq for NamedFont
Auto Trait Implementations
impl RefUnwindSafe for NamedFont
impl Send for NamedFont
impl Sync for NamedFont
impl Unpin for NamedFont
impl UnwindSafe for NamedFont
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more