Struct web_sys::HtmlAnchorElement
source · #[repr(transparent)]pub struct HtmlAnchorElement { /* private fields */ }
Expand description
The HTMLAnchorElement
object
This API requires the following crate features to be activated: HtmlAnchorElement
Implementations§
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_target(&self, target: &str)
pub fn set_target(&self, target: &str)
The target
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_download(&self, download: &str)
pub fn set_download(&self, download: &str)
The download
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn referrer_policy(&self) -> String
pub fn referrer_policy(&self) -> String
The referrerPolicy
getter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_referrer_policy(&self, referrer_policy: &str)
pub fn set_referrer_policy(&self, referrer_policy: &str)
The referrerPolicy
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn rel_list(&self) -> DomTokenList
pub fn rel_list(&self) -> DomTokenList
The relList
getter
This API requires the following crate features to be activated: DomTokenList
, HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_hreflang(&self, hreflang: &str)
pub fn set_hreflang(&self, hreflang: &str)
The hreflang
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_coords(&self, coords: &str)
pub fn set_coords(&self, coords: &str)
The coords
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
sourcepub fn set_charset(&self, charset: &str)
pub fn set_charset(&self, charset: &str)
The charset
setter
This API requires the following crate features to be activated: HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
source§impl HtmlAnchorElement
impl HtmlAnchorElement
Trait Implementations§
source§impl AsRef<Element> for HtmlAnchorElement
impl AsRef<Element> for HtmlAnchorElement
source§impl AsRef<EventTarget> for HtmlAnchorElement
impl AsRef<EventTarget> for HtmlAnchorElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlAnchorElement
impl AsRef<HtmlElement> for HtmlAnchorElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlAnchorElement
impl AsRef<JsValue> for HtmlAnchorElement
source§impl AsRef<Node> for HtmlAnchorElement
impl AsRef<Node> for HtmlAnchorElement
source§impl AsRef<Object> for HtmlAnchorElement
impl AsRef<Object> for HtmlAnchorElement
source§impl Clone for HtmlAnchorElement
impl Clone for HtmlAnchorElement
source§fn clone(&self) -> HtmlAnchorElement
fn clone(&self) -> HtmlAnchorElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlAnchorElement
impl Debug for HtmlAnchorElement
source§impl From<HtmlAnchorElement> for Element
impl From<HtmlAnchorElement> for Element
source§fn from(obj: HtmlAnchorElement) -> Element
fn from(obj: HtmlAnchorElement) -> Element
source§impl From<HtmlAnchorElement> for EventTarget
impl From<HtmlAnchorElement> for EventTarget
source§fn from(obj: HtmlAnchorElement) -> EventTarget
fn from(obj: HtmlAnchorElement) -> EventTarget
source§impl From<HtmlAnchorElement> for HtmlElement
impl From<HtmlAnchorElement> for HtmlElement
source§fn from(obj: HtmlAnchorElement) -> HtmlElement
fn from(obj: HtmlAnchorElement) -> HtmlElement
source§impl From<HtmlAnchorElement> for JsValue
impl From<HtmlAnchorElement> for JsValue
source§fn from(obj: HtmlAnchorElement) -> JsValue
fn from(obj: HtmlAnchorElement) -> JsValue
source§impl From<HtmlAnchorElement> for Node
impl From<HtmlAnchorElement> for Node
source§fn from(obj: HtmlAnchorElement) -> Node
fn from(obj: HtmlAnchorElement) -> Node
source§impl From<HtmlAnchorElement> for Object
impl From<HtmlAnchorElement> for Object
source§fn from(obj: HtmlAnchorElement) -> Object
fn from(obj: HtmlAnchorElement) -> Object
source§impl From<JsValue> for HtmlAnchorElement
impl From<JsValue> for HtmlAnchorElement
source§fn from(obj: JsValue) -> HtmlAnchorElement
fn from(obj: JsValue) -> HtmlAnchorElement
source§impl FromWasmAbi for HtmlAnchorElement
impl FromWasmAbi for HtmlAnchorElement
source§impl<'a> IntoWasmAbi for &'a HtmlAnchorElement
impl<'a> IntoWasmAbi for &'a HtmlAnchorElement
source§impl IntoWasmAbi for HtmlAnchorElement
impl IntoWasmAbi for HtmlAnchorElement
source§impl JsCast for HtmlAnchorElement
impl JsCast for HtmlAnchorElement
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
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,
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,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl<'a> OptionIntoWasmAbi for &'a HtmlAnchorElement
impl<'a> OptionIntoWasmAbi for &'a HtmlAnchorElement
source§impl RefFromWasmAbi for HtmlAnchorElement
impl RefFromWasmAbi for HtmlAnchorElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlAnchorElement>
type Anchor = ManuallyDrop<HtmlAnchorElement>
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 HtmlAnchorElement
impl !Send for HtmlAnchorElement
impl !Sync for HtmlAnchorElement
impl Unpin for HtmlAnchorElement
impl UnwindSafe for HtmlAnchorElement
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
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
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more