pub struct DefaultFontFamily { /* private fields */ }
Implementations§
Source§impl DefaultFontFamily
impl DefaultFontFamily
pub fn new( cursive: Option<JsString>, fantasy: Option<JsString>, monospace: Option<JsString>, sans_serif: Option<JsString>, serif: Option<JsString>, standard: Option<JsString>, ) -> DefaultFontFamily
pub fn cursive(&self) -> Option<JsString>
pub fn set_cursive(&mut self, value: Option<JsString>)
pub fn fantasy(&self) -> Option<JsString>
pub fn set_fantasy(&mut self, value: Option<JsString>)
pub fn monospace(&self) -> Option<JsString>
pub fn set_monospace(&mut self, value: Option<JsString>)
pub fn sans_serif(&self) -> Option<JsString>
pub fn set_sans_serif(&mut self, value: Option<JsString>)
pub fn serif(&self) -> Option<JsString>
pub fn set_serif(&mut self, value: Option<JsString>)
pub fn standard(&self) -> Option<JsString>
pub fn set_standard(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for DefaultFontFamily
impl Clone for DefaultFontFamily
Source§fn clone(&self) -> DefaultFontFamily
fn clone(&self) -> DefaultFontFamily
Returns a duplicate 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 DefaultFontFamily
impl Debug for DefaultFontFamily
Source§impl Default for DefaultFontFamily
impl Default for DefaultFontFamily
Source§fn default() -> DefaultFontFamily
fn default() -> DefaultFontFamily
Returns the “default value” for a type. Read more
Source§impl From<DefaultFontFamily> for JsValue
impl From<DefaultFontFamily> for JsValue
Source§fn from(value: DefaultFontFamily) -> Self
fn from(value: DefaultFontFamily) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DefaultFontFamily
impl FromWasmAbi for DefaultFontFamily
Source§impl IntoWasmAbi for DefaultFontFamily
impl IntoWasmAbi for DefaultFontFamily
Source§impl PartialEq for DefaultFontFamily
impl PartialEq for DefaultFontFamily
Source§impl RefFromWasmAbi for DefaultFontFamily
impl RefFromWasmAbi for DefaultFontFamily
Source§type Anchor = RcRef<DefaultFontFamily>
type Anchor = RcRef<DefaultFontFamily>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for DefaultFontFamily
impl TryFromJsValue for DefaultFontFamily
Source§impl VectorFromWasmAbi for DefaultFontFamily
impl VectorFromWasmAbi for DefaultFontFamily
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DefaultFontFamily]>
Source§impl VectorIntoJsValue for DefaultFontFamily
impl VectorIntoJsValue for DefaultFontFamily
fn vector_into_jsvalue(vector: Box<[DefaultFontFamily]>) -> JsValue
Source§impl VectorIntoWasmAbi for DefaultFontFamily
impl VectorIntoWasmAbi for DefaultFontFamily
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DefaultFontFamily]>) -> Self::Abi
Source§impl WasmDescribeVector for DefaultFontFamily
impl WasmDescribeVector for DefaultFontFamily
impl StructuralPartialEq for DefaultFontFamily
impl SupportsConstructor for DefaultFontFamily
impl SupportsInstanceProperty for DefaultFontFamily
impl SupportsStaticProperty for DefaultFontFamily
Auto Trait Implementations§
impl Freeze for DefaultFontFamily
impl RefUnwindSafe for DefaultFontFamily
impl !Send for DefaultFontFamily
impl !Sync for DefaultFontFamily
impl Unpin for DefaultFontFamily
impl UnwindSafe for DefaultFontFamily
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
.