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