Struct web_sys::SvgGeometryElement
source · #[repr(transparent)]pub struct SvgGeometryElement { /* private fields */ }
Expand description
The SVGGeometryElement
object
This API requires the following crate features to be activated: SvgGeometryElement
Implementations§
source§impl SvgGeometryElement
impl SvgGeometryElement
source§impl SvgGeometryElement
impl SvgGeometryElement
sourcepub fn get_total_length(&self) -> f32
pub fn get_total_length(&self) -> f32
The getTotalLength()
method
This API requires the following crate features to be activated: SvgGeometryElement
source§impl SvgGeometryElement
impl SvgGeometryElement
sourcepub fn path_length(&self) -> SvgAnimatedNumber
pub fn path_length(&self) -> SvgAnimatedNumber
The pathLength
getter
This API requires the following crate features to be activated: SvgAnimatedNumber
, SvgGeometryElement
Trait Implementations§
source§impl AsRef<Element> for SvgGeometryElement
impl AsRef<Element> for SvgGeometryElement
source§impl AsRef<EventTarget> for SvgGeometryElement
impl AsRef<EventTarget> for SvgGeometryElement
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 SvgGeometryElement
impl AsRef<JsValue> for SvgGeometryElement
source§impl AsRef<Node> for SvgGeometryElement
impl AsRef<Node> for SvgGeometryElement
source§impl AsRef<Object> for SvgGeometryElement
impl AsRef<Object> for SvgGeometryElement
source§impl AsRef<SvgElement> for SvgGeometryElement
impl AsRef<SvgElement> for SvgGeometryElement
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<SvgGeometryElement> for SvgCircleElement
impl AsRef<SvgGeometryElement> for SvgCircleElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgEllipseElement
impl AsRef<SvgGeometryElement> for SvgEllipseElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgLineElement
impl AsRef<SvgGeometryElement> for SvgLineElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgPathElement
impl AsRef<SvgGeometryElement> for SvgPathElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgPolygonElement
impl AsRef<SvgGeometryElement> for SvgPolygonElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgPolylineElement
impl AsRef<SvgGeometryElement> for SvgPolylineElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGeometryElement> for SvgRectElement
impl AsRef<SvgGeometryElement> for SvgRectElement
source§fn as_ref(&self) -> &SvgGeometryElement
fn as_ref(&self) -> &SvgGeometryElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SvgGraphicsElement> for SvgGeometryElement
impl AsRef<SvgGraphicsElement> for SvgGeometryElement
source§fn as_ref(&self) -> &SvgGraphicsElement
fn as_ref(&self) -> &SvgGraphicsElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SvgGeometryElement
impl Clone for SvgGeometryElement
source§fn clone(&self) -> SvgGeometryElement
fn clone(&self) -> SvgGeometryElement
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 SvgGeometryElement
impl Debug for SvgGeometryElement
source§impl From<JsValue> for SvgGeometryElement
impl From<JsValue> for SvgGeometryElement
source§fn from(obj: JsValue) -> SvgGeometryElement
fn from(obj: JsValue) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgCircleElement> for SvgGeometryElement
impl From<SvgCircleElement> for SvgGeometryElement
source§fn from(obj: SvgCircleElement) -> SvgGeometryElement
fn from(obj: SvgCircleElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgEllipseElement> for SvgGeometryElement
impl From<SvgEllipseElement> for SvgGeometryElement
source§fn from(obj: SvgEllipseElement) -> SvgGeometryElement
fn from(obj: SvgEllipseElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for Element
impl From<SvgGeometryElement> for Element
source§fn from(obj: SvgGeometryElement) -> Element
fn from(obj: SvgGeometryElement) -> Element
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for EventTarget
impl From<SvgGeometryElement> for EventTarget
source§fn from(obj: SvgGeometryElement) -> EventTarget
fn from(obj: SvgGeometryElement) -> EventTarget
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for JsValue
impl From<SvgGeometryElement> for JsValue
source§fn from(obj: SvgGeometryElement) -> JsValue
fn from(obj: SvgGeometryElement) -> JsValue
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for Node
impl From<SvgGeometryElement> for Node
source§fn from(obj: SvgGeometryElement) -> Node
fn from(obj: SvgGeometryElement) -> Node
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for Object
impl From<SvgGeometryElement> for Object
source§fn from(obj: SvgGeometryElement) -> Object
fn from(obj: SvgGeometryElement) -> Object
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for SvgElement
impl From<SvgGeometryElement> for SvgElement
source§fn from(obj: SvgGeometryElement) -> SvgElement
fn from(obj: SvgGeometryElement) -> SvgElement
Converts to this type from the input type.
source§impl From<SvgGeometryElement> for SvgGraphicsElement
impl From<SvgGeometryElement> for SvgGraphicsElement
source§fn from(obj: SvgGeometryElement) -> SvgGraphicsElement
fn from(obj: SvgGeometryElement) -> SvgGraphicsElement
Converts to this type from the input type.
source§impl From<SvgLineElement> for SvgGeometryElement
impl From<SvgLineElement> for SvgGeometryElement
source§fn from(obj: SvgLineElement) -> SvgGeometryElement
fn from(obj: SvgLineElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgPathElement> for SvgGeometryElement
impl From<SvgPathElement> for SvgGeometryElement
source§fn from(obj: SvgPathElement) -> SvgGeometryElement
fn from(obj: SvgPathElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgPolygonElement> for SvgGeometryElement
impl From<SvgPolygonElement> for SvgGeometryElement
source§fn from(obj: SvgPolygonElement) -> SvgGeometryElement
fn from(obj: SvgPolygonElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgPolylineElement> for SvgGeometryElement
impl From<SvgPolylineElement> for SvgGeometryElement
source§fn from(obj: SvgPolylineElement) -> SvgGeometryElement
fn from(obj: SvgPolylineElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl From<SvgRectElement> for SvgGeometryElement
impl From<SvgRectElement> for SvgGeometryElement
source§fn from(obj: SvgRectElement) -> SvgGeometryElement
fn from(obj: SvgRectElement) -> SvgGeometryElement
Converts to this type from the input type.
source§impl FromWasmAbi for SvgGeometryElement
impl FromWasmAbi for SvgGeometryElement
source§impl<'a> IntoWasmAbi for &'a SvgGeometryElement
impl<'a> IntoWasmAbi for &'a SvgGeometryElement
source§impl IntoWasmAbi for SvgGeometryElement
impl IntoWasmAbi for SvgGeometryElement
source§impl JsCast for SvgGeometryElement
impl JsCast for SvgGeometryElement
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 SvgGeometryElement
impl<'a> OptionIntoWasmAbi for &'a SvgGeometryElement
source§impl RefFromWasmAbi for SvgGeometryElement
impl RefFromWasmAbi for SvgGeometryElement
§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<SvgGeometryElement>
type Anchor = ManuallyDrop<SvgGeometryElement>
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 SvgGeometryElement
impl Send for SvgGeometryElement
impl Sync for SvgGeometryElement
impl Unpin for SvgGeometryElement
impl UnwindSafe for SvgGeometryElement
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