pub struct CreateFromBitmapOptions { /* private fields */ }Implementations§
Source§impl CreateFromBitmapOptions
impl CreateFromBitmapOptions
pub fn new( height: usize, scale_factor: Option<f32>, width: usize, ) -> CreateFromBitmapOptions
pub fn height(&self) -> usize
pub fn set_height(&mut self, value: usize)
pub fn scale_factor(&self) -> Option<f32>
pub fn set_scale_factor(&mut self, value: Option<f32>)
pub fn width(&self) -> usize
pub fn set_width(&mut self, value: usize)
Trait Implementations§
Source§impl Clone for CreateFromBitmapOptions
impl Clone for CreateFromBitmapOptions
Source§fn clone(&self) -> CreateFromBitmapOptions
fn clone(&self) -> CreateFromBitmapOptions
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 CreateFromBitmapOptions
Source§impl Debug for CreateFromBitmapOptions
impl Debug for CreateFromBitmapOptions
Source§impl From<CreateFromBitmapOptions> for JsValue
impl From<CreateFromBitmapOptions> for JsValue
Source§fn from(value: CreateFromBitmapOptions) -> Self
fn from(value: CreateFromBitmapOptions) -> Self
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for CreateFromBitmapOptions
impl LongRefFromWasmAbi for CreateFromBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<CreateFromBitmapOptions>
type Anchor = RcRef<CreateFromBitmapOptions>
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 PartialEq for CreateFromBitmapOptions
impl PartialEq for CreateFromBitmapOptions
Source§fn eq(&self, other: &CreateFromBitmapOptions) -> bool
fn eq(&self, other: &CreateFromBitmapOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CreateFromBitmapOptions
impl PartialOrd for CreateFromBitmapOptions
Source§impl RefFromWasmAbi for CreateFromBitmapOptions
impl RefFromWasmAbi for CreateFromBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<CreateFromBitmapOptions>
type Anchor = RcRef<CreateFromBitmapOptions>
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 CreateFromBitmapOptions
impl RefMutFromWasmAbi for CreateFromBitmapOptions
Source§type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
type Abi = WasmPtr<WasmRefCell<CreateFromBitmapOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<CreateFromBitmapOptions>
type Anchor = RcRefMut<CreateFromBitmapOptions>
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 CreateFromBitmapOptions
impl SupportsConstructor for CreateFromBitmapOptions
impl SupportsInstanceProperty for CreateFromBitmapOptions
impl SupportsStaticProperty for CreateFromBitmapOptions
Source§impl VectorFromWasmAbi for CreateFromBitmapOptions
impl VectorFromWasmAbi for CreateFromBitmapOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CreateFromBitmapOptions]>
Source§impl VectorIntoWasmAbi for CreateFromBitmapOptions
impl VectorIntoWasmAbi for CreateFromBitmapOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CreateFromBitmapOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for CreateFromBitmapOptions
impl WasmDescribeVector for CreateFromBitmapOptions
Auto Trait Implementations§
impl Freeze for CreateFromBitmapOptions
impl RefUnwindSafe for CreateFromBitmapOptions
impl Send for CreateFromBitmapOptions
impl Sync for CreateFromBitmapOptions
impl Unpin for CreateFromBitmapOptions
impl UnsafeUnpin for CreateFromBitmapOptions
impl UnwindSafe for CreateFromBitmapOptions
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.