pub struct Font {
pub name: String,
pub character_set: u8,
pub font_family: FontFamily,
}
Fields§
§name: String
§character_set: u8
§font_family: FontFamily
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Font
impl<'de> Deserialize<'de> for Font
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 FromWasmAbi for Font
impl FromWasmAbi for Font
Source§impl IntoWasmAbi for Font
impl IntoWasmAbi for Font
Source§impl LongRefFromWasmAbi for Font
impl LongRefFromWasmAbi for Font
Source§impl OptionFromWasmAbi for Font
impl OptionFromWasmAbi for Font
Source§impl OptionIntoWasmAbi for Font
impl OptionIntoWasmAbi for Font
Source§impl RefFromWasmAbi for Font
impl RefFromWasmAbi for Font
Source§impl RefMutFromWasmAbi for Font
impl RefMutFromWasmAbi for Font
Source§impl TryFromJsValue for Font
impl TryFromJsValue for Font
Source§impl VectorFromWasmAbi for Font
impl VectorFromWasmAbi for Font
Source§impl VectorIntoWasmAbi for Font
impl VectorIntoWasmAbi for Font
impl StructuralPartialEq for Font
impl SupportsConstructor for Font
impl SupportsInstanceProperty for Font
impl SupportsStaticProperty for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.