pub struct WasmImage { /* private fields */ }
Implementations§
Source§impl WasmImage
impl WasmImage
pub fn new( image_base64: String, mime_type: String, top: f64, left: f64, bottom: f64, right: f64, alpha: f64, ) -> WasmImage
pub fn get_image_base64(&self) -> String
pub fn get_mime_type(&self) -> String
pub fn get_top(&self) -> f64
pub fn get_left(&self) -> f64
pub fn get_bottom(&self) -> f64
pub fn get_right(&self) -> f64
pub fn get_alpha(&self) -> f64
Trait Implementations§
Source§impl FromWasmAbi for WasmImage
impl FromWasmAbi for WasmImage
Source§impl IntoWasmAbi for WasmImage
impl IntoWasmAbi for WasmImage
Source§impl LongRefFromWasmAbi for WasmImage
impl LongRefFromWasmAbi for WasmImage
Source§impl OptionFromWasmAbi for WasmImage
impl OptionFromWasmAbi for WasmImage
Source§impl OptionIntoWasmAbi for WasmImage
impl OptionIntoWasmAbi for WasmImage
Source§impl RefFromWasmAbi for WasmImage
impl RefFromWasmAbi for WasmImage
Source§impl RefMutFromWasmAbi for WasmImage
impl RefMutFromWasmAbi for WasmImage
Source§impl TryFromJsValue for WasmImage
impl TryFromJsValue for WasmImage
Source§impl VectorFromWasmAbi for WasmImage
impl VectorFromWasmAbi for WasmImage
Source§impl VectorIntoWasmAbi for WasmImage
impl VectorIntoWasmAbi for WasmImage
Auto Trait Implementations§
impl Freeze for WasmImage
impl RefUnwindSafe for WasmImage
impl Send for WasmImage
impl Sync for WasmImage
impl Unpin for WasmImage
impl UnwindSafe for WasmImage
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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
.