pub struct ToBitmapOptions { /* private fields */ }Implementations§
Source§impl ToBitmapOptions
impl ToBitmapOptions
pub fn new(scale_factor: Option<f32>) -> ToBitmapOptions
pub fn scale_factor(self) -> Option<f32>
pub fn set_scale_factor(self, value: Option<f32>)
Trait Implementations§
Source§impl Clone for ToBitmapOptions
impl Clone for ToBitmapOptions
Source§fn clone(&self) -> ToBitmapOptions
fn clone(&self) -> ToBitmapOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToBitmapOptions
Source§impl Debug for ToBitmapOptions
impl Debug for ToBitmapOptions
Source§impl Default for ToBitmapOptions
impl Default for ToBitmapOptions
Source§fn default() -> ToBitmapOptions
fn default() -> ToBitmapOptions
Returns the “default value” for a type. Read more
Source§impl From<ToBitmapOptions> for JsValue
impl From<ToBitmapOptions> for JsValue
Source§fn from(value: ToBitmapOptions) -> Self
fn from(value: ToBitmapOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ToBitmapOptions
impl FromWasmAbi for ToBitmapOptions
Source§impl IntoWasmAbi for ToBitmapOptions
impl IntoWasmAbi for ToBitmapOptions
Source§impl LongRefFromWasmAbi for ToBitmapOptions
impl LongRefFromWasmAbi for ToBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<ToBitmapOptions>
type Anchor = RcRef<ToBitmapOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for ToBitmapOptions
impl OptionFromWasmAbi for ToBitmapOptions
Source§impl OptionIntoWasmAbi for ToBitmapOptions
impl OptionIntoWasmAbi for ToBitmapOptions
Source§impl PartialEq for ToBitmapOptions
impl PartialEq for ToBitmapOptions
Source§fn eq(&self, other: &ToBitmapOptions) -> bool
fn eq(&self, other: &ToBitmapOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ToBitmapOptions
impl PartialOrd for ToBitmapOptions
Source§impl RefFromWasmAbi for ToBitmapOptions
impl RefFromWasmAbi for ToBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<ToBitmapOptions>
type Anchor = RcRef<ToBitmapOptions>
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 ToBitmapOptions
impl RefMutFromWasmAbi for ToBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<ToBitmapOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<ToBitmapOptions>
type Anchor = RcRefMut<ToBitmapOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for ToBitmapOptions
impl SupportsConstructor for ToBitmapOptions
impl SupportsInstanceProperty for ToBitmapOptions
impl SupportsStaticProperty for ToBitmapOptions
Source§impl TryFromJsValue for ToBitmapOptions
impl TryFromJsValue for ToBitmapOptions
Source§impl VectorFromWasmAbi for ToBitmapOptions
impl VectorFromWasmAbi for ToBitmapOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ToBitmapOptions]>
Source§impl VectorIntoWasmAbi for ToBitmapOptions
impl VectorIntoWasmAbi for ToBitmapOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ToBitmapOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ToBitmapOptions
impl WasmDescribeVector for ToBitmapOptions
Auto Trait Implementations§
impl Freeze for ToBitmapOptions
impl RefUnwindSafe for ToBitmapOptions
impl Send for ToBitmapOptions
impl Sync for ToBitmapOptions
impl Unpin for ToBitmapOptions
impl UnsafeUnpin for ToBitmapOptions
impl UnwindSafe for ToBitmapOptions
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::AbiSource§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.