Struct web_sys::SvgGradientElement
source · #[repr(transparent)]pub struct SvgGradientElement { /* private fields */ }
Expand description
The SVGGradientElement
object
This API requires the following crate features to be activated: SvgGradientElement
Implementations§
source§impl SvgGradientElement
impl SvgGradientElement
sourcepub fn gradient_units(&self) -> SvgAnimatedEnumeration
pub fn gradient_units(&self) -> SvgAnimatedEnumeration
The gradientUnits
getter
This API requires the following crate features to be activated: SvgAnimatedEnumeration
, SvgGradientElement
source§impl SvgGradientElement
impl SvgGradientElement
sourcepub fn gradient_transform(&self) -> SvgAnimatedTransformList
pub fn gradient_transform(&self) -> SvgAnimatedTransformList
The gradientTransform
getter
This API requires the following crate features to be activated: SvgAnimatedTransformList
, SvgGradientElement
source§impl SvgGradientElement
impl SvgGradientElement
sourcepub fn spread_method(&self) -> SvgAnimatedEnumeration
pub fn spread_method(&self) -> SvgAnimatedEnumeration
The spreadMethod
getter
This API requires the following crate features to be activated: SvgAnimatedEnumeration
, SvgGradientElement
source§impl SvgGradientElement
impl SvgGradientElement
sourcepub fn href(&self) -> SvgAnimatedString
pub fn href(&self) -> SvgAnimatedString
The href
getter
This API requires the following crate features to be activated: SvgAnimatedString
, SvgGradientElement
source§impl SvgGradientElement
impl SvgGradientElement
pub const SVG_SPREADMETHOD_UNKNOWN: u16 = 0u16
source§impl SvgGradientElement
impl SvgGradientElement
pub const SVG_SPREADMETHOD_PAD: u16 = 1u16
source§impl SvgGradientElement
impl SvgGradientElement
pub const SVG_SPREADMETHOD_REFLECT: u16 = 2u16
source§impl SvgGradientElement
impl SvgGradientElement
pub const SVG_SPREADMETHOD_REPEAT: u16 = 3u16
Trait Implementations§
source§impl AsRef<Element> for SvgGradientElement
impl AsRef<Element> for SvgGradientElement
source§impl AsRef<EventTarget> for SvgGradientElement
impl AsRef<EventTarget> for SvgGradientElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<JsValue> for SvgGradientElement
impl AsRef<JsValue> for SvgGradientElement
source§impl AsRef<Node> for SvgGradientElement
impl AsRef<Node> for SvgGradientElement
source§impl AsRef<Object> for SvgGradientElement
impl AsRef<Object> for SvgGradientElement
source§impl AsRef<SvgElement> for SvgGradientElement
impl AsRef<SvgElement> for SvgGradientElement
source§fn as_ref(&self) -> &SvgElement
fn as_ref(&self) -> &SvgElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGradientElement> for SvgLinearGradientElement
impl AsRef<SvgGradientElement> for SvgLinearGradientElement
source§fn as_ref(&self) -> &SvgGradientElement
fn as_ref(&self) -> &SvgGradientElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGradientElement> for SvgRadialGradientElement
impl AsRef<SvgGradientElement> for SvgRadialGradientElement
source§fn as_ref(&self) -> &SvgGradientElement
fn as_ref(&self) -> &SvgGradientElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SvgGradientElement
impl Clone for SvgGradientElement
source§fn clone(&self) -> SvgGradientElement
fn clone(&self) -> SvgGradientElement
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 SvgGradientElement
impl Debug for SvgGradientElement
source§impl From<JsValue> for SvgGradientElement
impl From<JsValue> for SvgGradientElement
source§fn from(obj: JsValue) -> SvgGradientElement
fn from(obj: JsValue) -> SvgGradientElement
Converts to this type from the input type.
source§impl From<SvgGradientElement> for Element
impl From<SvgGradientElement> for Element
source§fn from(obj: SvgGradientElement) -> Element
fn from(obj: SvgGradientElement) -> Element
Converts to this type from the input type.
source§impl From<SvgGradientElement> for EventTarget
impl From<SvgGradientElement> for EventTarget
source§fn from(obj: SvgGradientElement) -> EventTarget
fn from(obj: SvgGradientElement) -> EventTarget
Converts to this type from the input type.
source§impl From<SvgGradientElement> for JsValue
impl From<SvgGradientElement> for JsValue
source§fn from(obj: SvgGradientElement) -> JsValue
fn from(obj: SvgGradientElement) -> JsValue
Converts to this type from the input type.
source§impl From<SvgGradientElement> for Node
impl From<SvgGradientElement> for Node
source§fn from(obj: SvgGradientElement) -> Node
fn from(obj: SvgGradientElement) -> Node
Converts to this type from the input type.
source§impl From<SvgGradientElement> for Object
impl From<SvgGradientElement> for Object
source§fn from(obj: SvgGradientElement) -> Object
fn from(obj: SvgGradientElement) -> Object
Converts to this type from the input type.
source§impl From<SvgGradientElement> for SvgElement
impl From<SvgGradientElement> for SvgElement
source§fn from(obj: SvgGradientElement) -> SvgElement
fn from(obj: SvgGradientElement) -> SvgElement
Converts to this type from the input type.
source§impl From<SvgLinearGradientElement> for SvgGradientElement
impl From<SvgLinearGradientElement> for SvgGradientElement
source§fn from(obj: SvgLinearGradientElement) -> SvgGradientElement
fn from(obj: SvgLinearGradientElement) -> SvgGradientElement
Converts to this type from the input type.
source§impl From<SvgRadialGradientElement> for SvgGradientElement
impl From<SvgRadialGradientElement> for SvgGradientElement
source§fn from(obj: SvgRadialGradientElement) -> SvgGradientElement
fn from(obj: SvgRadialGradientElement) -> SvgGradientElement
Converts to this type from the input type.
source§impl FromWasmAbi for SvgGradientElement
impl FromWasmAbi for SvgGradientElement
source§impl<'a> IntoWasmAbi for &'a SvgGradientElement
impl<'a> IntoWasmAbi for &'a SvgGradientElement
source§impl IntoWasmAbi for SvgGradientElement
impl IntoWasmAbi for SvgGradientElement
source§impl JsCast for SvgGradientElement
impl JsCast for SvgGradientElement
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 is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the 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§impl<'a> OptionIntoWasmAbi for &'a SvgGradientElement
impl<'a> OptionIntoWasmAbi for &'a SvgGradientElement
source§impl RefFromWasmAbi for SvgGradientElement
impl RefFromWasmAbi for SvgGradientElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<SvgGradientElement>
type Anchor = ManuallyDrop<SvgGradientElement>
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. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SvgGradientElement
impl !Send for SvgGradientElement
impl !Sync for SvgGradientElement
impl Unpin for SvgGradientElement
impl UnwindSafe for SvgGradientElement
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more