pub struct AddRepresentationOptions { /* private fields */ }Implementations§
Source§impl AddRepresentationOptions
impl AddRepresentationOptions
pub fn new( buffer: Option<Buffer>, data_url: Option<JsString>, height: Option<usize>, scale_factor: Option<f32>, width: Option<usize>, ) -> AddRepresentationOptions
pub fn buffer(&self) -> Option<Buffer>
pub fn set_buffer(&mut self, value: Option<Buffer>)
pub fn data_url(&self) -> Option<JsString>
pub fn set_data_url(&mut self, value: Option<JsString>)
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 AddRepresentationOptions
impl Clone for AddRepresentationOptions
Source§fn clone(&self) -> AddRepresentationOptions
fn clone(&self) -> AddRepresentationOptions
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 AddRepresentationOptions
impl Debug for AddRepresentationOptions
Source§impl Default for AddRepresentationOptions
impl Default for AddRepresentationOptions
Source§fn default() -> AddRepresentationOptions
fn default() -> AddRepresentationOptions
Returns the “default value” for a type. Read more
Source§impl From<AddRepresentationOptions> for JsValue
impl From<AddRepresentationOptions> for JsValue
Source§fn from(value: AddRepresentationOptions) -> Self
fn from(value: AddRepresentationOptions) -> Self
Converts to this type from the input type.
Source§impl RefFromWasmAbi for AddRepresentationOptions
impl RefFromWasmAbi for AddRepresentationOptions
Source§type Anchor = RcRef<AddRepresentationOptions>
type Anchor = RcRef<AddRepresentationOptions>
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 AddRepresentationOptions
impl VectorFromWasmAbi for AddRepresentationOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AddRepresentationOptions]>
Source§impl VectorIntoJsValue for AddRepresentationOptions
impl VectorIntoJsValue for AddRepresentationOptions
fn vector_into_jsvalue(vector: Box<[AddRepresentationOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for AddRepresentationOptions
impl VectorIntoWasmAbi for AddRepresentationOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AddRepresentationOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for AddRepresentationOptions
impl WasmDescribeVector for AddRepresentationOptions
impl SupportsConstructor for AddRepresentationOptions
impl SupportsInstanceProperty for AddRepresentationOptions
impl SupportsStaticProperty for AddRepresentationOptions
Auto Trait Implementations§
impl Freeze for AddRepresentationOptions
impl RefUnwindSafe for AddRepresentationOptions
impl !Send for AddRepresentationOptions
impl !Sync for AddRepresentationOptions
impl Unpin for AddRepresentationOptions
impl UnwindSafe for AddRepresentationOptions
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.