pub struct ResizeOptions { /* private fields */ }
Implementations§
Source§impl ResizeOptions
impl ResizeOptions
pub fn new( height: Option<u32>, quality: Option<JsString>, width: Option<u32>, ) -> ResizeOptions
pub fn height(&self) -> Option<u32>
pub fn set_height(&mut self, value: Option<u32>)
pub fn quality(&self) -> Option<JsString>
pub fn set_quality(&mut self, value: Option<JsString>)
pub fn width(&self) -> Option<u32>
pub fn set_width(&mut self, value: Option<u32>)
Trait Implementations§
Source§impl Clone for ResizeOptions
impl Clone for ResizeOptions
Source§fn clone(&self) -> ResizeOptions
fn clone(&self) -> ResizeOptions
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 ResizeOptions
impl Debug for ResizeOptions
Source§impl From<ResizeOptions> for JsValue
impl From<ResizeOptions> for JsValue
Source§fn from(value: ResizeOptions) -> Self
fn from(value: ResizeOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ResizeOptions
impl FromWasmAbi for ResizeOptions
Source§impl IntoWasmAbi for ResizeOptions
impl IntoWasmAbi for ResizeOptions
Source§impl LongRefFromWasmAbi for ResizeOptions
impl LongRefFromWasmAbi for ResizeOptions
Source§impl OptionFromWasmAbi for ResizeOptions
impl OptionFromWasmAbi for ResizeOptions
Source§impl OptionIntoWasmAbi for ResizeOptions
impl OptionIntoWasmAbi for ResizeOptions
Source§impl PartialEq for ResizeOptions
impl PartialEq for ResizeOptions
Source§impl RefFromWasmAbi for ResizeOptions
impl RefFromWasmAbi for ResizeOptions
Source§type Anchor = RcRef<ResizeOptions>
type Anchor = RcRef<ResizeOptions>
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 ResizeOptions
impl RefMutFromWasmAbi for ResizeOptions
Source§impl TryFromJsValue for ResizeOptions
impl TryFromJsValue for ResizeOptions
Source§impl VectorFromWasmAbi for ResizeOptions
impl VectorFromWasmAbi for ResizeOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ResizeOptions]>
Source§impl VectorIntoJsValue for ResizeOptions
impl VectorIntoJsValue for ResizeOptions
fn vector_into_jsvalue(vector: Box<[ResizeOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for ResizeOptions
impl VectorIntoWasmAbi for ResizeOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ResizeOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for ResizeOptions
impl WasmDescribeVector for ResizeOptions
impl Eq for ResizeOptions
impl StructuralPartialEq for ResizeOptions
impl SupportsConstructor for ResizeOptions
impl SupportsInstanceProperty for ResizeOptions
impl SupportsStaticProperty for ResizeOptions
Auto Trait Implementations§
impl Freeze for ResizeOptions
impl RefUnwindSafe for ResizeOptions
impl !Send for ResizeOptions
impl !Sync for ResizeOptions
impl Unpin for ResizeOptions
impl UnwindSafe for ResizeOptions
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
.