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