pub struct ToDataUrlOptions { /* private fields */ }
Implementations§
Source§impl ToDataUrlOptions
impl ToDataUrlOptions
pub fn new(scale_factor: Option<f32>) -> ToDataUrlOptions
pub fn scale_factor(self) -> Option<f32>
pub fn set_scale_factor(self, value: Option<f32>)
Trait Implementations§
Source§impl Clone for ToDataUrlOptions
impl Clone for ToDataUrlOptions
Source§fn clone(&self) -> ToDataUrlOptions
fn clone(&self) -> ToDataUrlOptions
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 ToDataUrlOptions
impl Debug for ToDataUrlOptions
Source§impl Default for ToDataUrlOptions
impl Default for ToDataUrlOptions
Source§fn default() -> ToDataUrlOptions
fn default() -> ToDataUrlOptions
Returns the “default value” for a type. Read more
Source§impl From<ToDataUrlOptions> for JsValue
impl From<ToDataUrlOptions> for JsValue
Source§fn from(value: ToDataUrlOptions) -> Self
fn from(value: ToDataUrlOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ToDataUrlOptions
impl FromWasmAbi for ToDataUrlOptions
Source§impl IntoWasmAbi for ToDataUrlOptions
impl IntoWasmAbi for ToDataUrlOptions
Source§impl OptionFromWasmAbi for ToDataUrlOptions
impl OptionFromWasmAbi for ToDataUrlOptions
Source§impl OptionIntoWasmAbi for ToDataUrlOptions
impl OptionIntoWasmAbi for ToDataUrlOptions
Source§impl PartialEq for ToDataUrlOptions
impl PartialEq for ToDataUrlOptions
Source§impl PartialOrd for ToDataUrlOptions
impl PartialOrd for ToDataUrlOptions
Source§impl RefFromWasmAbi for ToDataUrlOptions
impl RefFromWasmAbi for ToDataUrlOptions
Source§type Anchor = RcRef<ToDataUrlOptions>
type Anchor = RcRef<ToDataUrlOptions>
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 RefMutFromWasmAbi for ToDataUrlOptions
impl RefMutFromWasmAbi for ToDataUrlOptions
Source§impl TryFromJsValue for ToDataUrlOptions
impl TryFromJsValue for ToDataUrlOptions
Source§impl VectorFromWasmAbi for ToDataUrlOptions
impl VectorFromWasmAbi for ToDataUrlOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ToDataUrlOptions]>
Source§impl VectorIntoJsValue for ToDataUrlOptions
impl VectorIntoJsValue for ToDataUrlOptions
fn vector_into_jsvalue(vector: Box<[ToDataUrlOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for ToDataUrlOptions
impl VectorIntoWasmAbi for ToDataUrlOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ToDataUrlOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ToDataUrlOptions
impl WasmDescribeVector for ToDataUrlOptions
impl Copy for ToDataUrlOptions
impl StructuralPartialEq for ToDataUrlOptions
impl SupportsConstructor for ToDataUrlOptions
impl SupportsInstanceProperty for ToDataUrlOptions
impl SupportsStaticProperty for ToDataUrlOptions
Auto Trait Implementations§
impl Freeze for ToDataUrlOptions
impl RefUnwindSafe for ToDataUrlOptions
impl Send for ToDataUrlOptions
impl Sync for ToDataUrlOptions
impl Unpin for ToDataUrlOptions
impl UnwindSafe for ToDataUrlOptions
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
.