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 · 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 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 PartialEq for CreateFromBitmapOptions
impl PartialEq for CreateFromBitmapOptions
Source§impl PartialOrd for CreateFromBitmapOptions
impl PartialOrd for CreateFromBitmapOptions
Source§impl RefFromWasmAbi for CreateFromBitmapOptions
impl RefFromWasmAbi for CreateFromBitmapOptions
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 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 VectorIntoJsValue for CreateFromBitmapOptions
impl VectorIntoJsValue for CreateFromBitmapOptions
fn vector_into_jsvalue(vector: Box<[CreateFromBitmapOptions]>) -> JsValue
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
impl Copy for CreateFromBitmapOptions
impl StructuralPartialEq for CreateFromBitmapOptions
impl SupportsConstructor for CreateFromBitmapOptions
impl SupportsInstanceProperty for CreateFromBitmapOptions
impl SupportsStaticProperty 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 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::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
.