Struct web_sys::SvgLineElement
source · #[repr(transparent)]pub struct SvgLineElement { /* private fields */ }
Expand description
The SVGLineElement
object
This API requires the following crate features to be activated: SvgLineElement
Implementations§
source§impl SvgLineElement
impl SvgLineElement
sourcepub fn x1(&self) -> SvgAnimatedLength
pub fn x1(&self) -> SvgAnimatedLength
The x1
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgLineElement
source§impl SvgLineElement
impl SvgLineElement
sourcepub fn y1(&self) -> SvgAnimatedLength
pub fn y1(&self) -> SvgAnimatedLength
The y1
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgLineElement
source§impl SvgLineElement
impl SvgLineElement
sourcepub fn x2(&self) -> SvgAnimatedLength
pub fn x2(&self) -> SvgAnimatedLength
The x2
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgLineElement
source§impl SvgLineElement
impl SvgLineElement
sourcepub fn y2(&self) -> SvgAnimatedLength
pub fn y2(&self) -> SvgAnimatedLength
The y2
getter
This API requires the following crate features to be activated: SvgAnimatedLength
, SvgLineElement
Trait Implementations§
source§impl AsRef<Element> for SvgLineElement
impl AsRef<Element> for SvgLineElement
source§impl AsRef<EventTarget> for SvgLineElement
impl AsRef<EventTarget> for SvgLineElement
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 SvgLineElement
impl AsRef<JsValue> for SvgLineElement
source§impl AsRef<Node> for SvgLineElement
impl AsRef<Node> for SvgLineElement
source§impl AsRef<Object> for SvgLineElement
impl AsRef<Object> for SvgLineElement
source§impl AsRef<SvgElement> for SvgLineElement
impl AsRef<SvgElement> for SvgLineElement
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 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<SvgGraphicsElement> for SvgLineElement
impl AsRef<SvgGraphicsElement> for SvgLineElement
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 SvgLineElement
impl Clone for SvgLineElement
source§fn clone(&self) -> SvgLineElement
fn clone(&self) -> SvgLineElement
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 SvgLineElement
impl Debug for SvgLineElement
source§impl From<JsValue> for SvgLineElement
impl From<JsValue> for SvgLineElement
source§fn from(obj: JsValue) -> SvgLineElement
fn from(obj: JsValue) -> SvgLineElement
Converts to this type from the input type.
source§impl From<SvgLineElement> for Element
impl From<SvgLineElement> for Element
source§fn from(obj: SvgLineElement) -> Element
fn from(obj: SvgLineElement) -> Element
Converts to this type from the input type.
source§impl From<SvgLineElement> for EventTarget
impl From<SvgLineElement> for EventTarget
source§fn from(obj: SvgLineElement) -> EventTarget
fn from(obj: SvgLineElement) -> EventTarget
Converts to this type from the input type.
source§impl From<SvgLineElement> for JsValue
impl From<SvgLineElement> for JsValue
source§fn from(obj: SvgLineElement) -> JsValue
fn from(obj: SvgLineElement) -> JsValue
Converts to this type from the input type.
source§impl From<SvgLineElement> for Node
impl From<SvgLineElement> for Node
source§fn from(obj: SvgLineElement) -> Node
fn from(obj: SvgLineElement) -> Node
Converts to this type from the input type.
source§impl From<SvgLineElement> for Object
impl From<SvgLineElement> for Object
source§fn from(obj: SvgLineElement) -> Object
fn from(obj: SvgLineElement) -> Object
Converts to this type from the input type.
source§impl From<SvgLineElement> for SvgElement
impl From<SvgLineElement> for SvgElement
source§fn from(obj: SvgLineElement) -> SvgElement
fn from(obj: SvgLineElement) -> SvgElement
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<SvgLineElement> for SvgGraphicsElement
impl From<SvgLineElement> for SvgGraphicsElement
source§fn from(obj: SvgLineElement) -> SvgGraphicsElement
fn from(obj: SvgLineElement) -> SvgGraphicsElement
Converts to this type from the input type.
source§impl FromWasmAbi for SvgLineElement
impl FromWasmAbi for SvgLineElement
source§impl<'a> IntoWasmAbi for &'a SvgLineElement
impl<'a> IntoWasmAbi for &'a SvgLineElement
source§impl IntoWasmAbi for SvgLineElement
impl IntoWasmAbi for SvgLineElement
source§impl JsCast for SvgLineElement
impl JsCast for SvgLineElement
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 OptionFromWasmAbi for SvgLineElement
impl OptionFromWasmAbi for SvgLineElement
source§impl<'a> OptionIntoWasmAbi for &'a SvgLineElement
impl<'a> OptionIntoWasmAbi for &'a SvgLineElement
source§impl OptionIntoWasmAbi for SvgLineElement
impl OptionIntoWasmAbi for SvgLineElement
source§impl RefFromWasmAbi for SvgLineElement
impl RefFromWasmAbi for SvgLineElement
§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<SvgLineElement>
type Anchor = ManuallyDrop<SvgLineElement>
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 SvgLineElement
impl Send for SvgLineElement
impl Sync for SvgLineElement
impl Unpin for SvgLineElement
impl UnwindSafe for SvgLineElement
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