pub struct WasmGradientImageOrColor {
pub gradient_image_or_color: GradientImageOrColor,
}
Fields§
§gradient_image_or_color: GradientImageOrColor
Implementations§
Source§impl WasmGradientImageOrColor
impl WasmGradientImageOrColor
pub fn from_color(color: WasmColor) -> WasmGradientImageOrColor
pub fn from_linear_gradient( linear_gradient: WasmLinearGradient, ) -> WasmGradientImageOrColor
pub fn from_radial_gradient( radial_gradient: WasmRadialGradient, ) -> WasmGradientImageOrColor
pub fn from_image(image: WasmImage) -> WasmGradientImageOrColor
pub fn is_color(&self) -> bool
pub fn is_linear_gradient(&self) -> bool
pub fn is_radial_gradient(&self) -> bool
pub fn is_image(&self) -> bool
pub fn get_color(&self) -> Option<WasmColor>
pub fn get_linear_gradient(&self) -> Option<WasmLinearGradient>
pub fn get_radial_gradient(&self) -> Option<WasmRadialGradient>
pub fn get_image(&self) -> Option<WasmImage>
pub fn clone_js(&self) -> WasmGradientImageOrColor
Trait Implementations§
Source§impl AsRef<JsValue> for WasmGradientImageOrColor
impl AsRef<JsValue> for WasmGradientImageOrColor
Source§impl Clone for WasmGradientImageOrColor
impl Clone for WasmGradientImageOrColor
Source§fn clone(&self) -> WasmGradientImageOrColor
fn clone(&self) -> WasmGradientImageOrColor
Returns a copy 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 WasmGradientImageOrColor
impl Debug for WasmGradientImageOrColor
Source§impl From<WasmGradientImageOrColor> for JsValue
impl From<WasmGradientImageOrColor> for JsValue
Source§fn from(value: WasmGradientImageOrColor) -> Self
fn from(value: WasmGradientImageOrColor) -> Self
Converts to this type from the input type.
Source§impl JsCast for WasmGradientImageOrColor
impl JsCast for WasmGradientImageOrColor
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value has a type
T
. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified
type. Read more
Source§impl RefFromWasmAbi for WasmGradientImageOrColor
impl RefFromWasmAbi for WasmGradientImageOrColor
Source§type Anchor = RcRef<WasmGradientImageOrColor>
type Anchor = RcRef<WasmGradientImageOrColor>
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 WasmGradientImageOrColor
impl VectorFromWasmAbi for WasmGradientImageOrColor
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmGradientImageOrColor]>
Source§impl VectorIntoJsValue for WasmGradientImageOrColor
impl VectorIntoJsValue for WasmGradientImageOrColor
fn vector_into_jsvalue(vector: Box<[WasmGradientImageOrColor]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmGradientImageOrColor
impl VectorIntoWasmAbi for WasmGradientImageOrColor
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmGradientImageOrColor]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmGradientImageOrColor
impl WasmDescribeVector for WasmGradientImageOrColor
Auto Trait Implementations§
impl Freeze for WasmGradientImageOrColor
impl RefUnwindSafe for WasmGradientImageOrColor
impl Send for WasmGradientImageOrColor
impl Sync for WasmGradientImageOrColor
impl Unpin for WasmGradientImageOrColor
impl UnwindSafe for WasmGradientImageOrColor
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
.