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