Struct web_sys::HtmlLinkElement
source · #[repr(transparent)]pub struct HtmlLinkElement { /* private fields */ }
Expand description
The HTMLLinkElement
object
This API requires the following crate features to be activated: HtmlLinkElement
Implementations§
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn set_disabled(&self, disabled: bool)
pub fn set_disabled(&self, disabled: bool)
The disabled
setter
This API requires the following crate features to be activated: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn cross_origin(&self) -> Option<String>
pub fn cross_origin(&self) -> Option<String>
The crossOrigin
getter
This API requires the following crate features to be activated: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn set_cross_origin(&self, cross_origin: Option<&str>)
pub fn set_cross_origin(&self, cross_origin: Option<&str>)
The crossOrigin
setter
This API requires the following crate features to be activated: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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
, HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn sizes(&self) -> DomTokenList
pub fn sizes(&self) -> DomTokenList
The sizes
getter
This API requires the following crate features to be activated: DomTokenList
, HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
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: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn set_integrity(&self, integrity: &str)
pub fn set_integrity(&self, integrity: &str)
The integrity
setter
This API requires the following crate features to be activated: HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
source§impl HtmlLinkElement
impl HtmlLinkElement
sourcepub fn sheet(&self) -> Option<StyleSheet>
pub fn sheet(&self) -> Option<StyleSheet>
The sheet
getter
This API requires the following crate features to be activated: HtmlLinkElement
, StyleSheet
Trait Implementations§
source§impl AsRef<Element> for HtmlLinkElement
impl AsRef<Element> for HtmlLinkElement
source§impl AsRef<EventTarget> for HtmlLinkElement
impl AsRef<EventTarget> for HtmlLinkElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlLinkElement
impl AsRef<HtmlElement> for HtmlLinkElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlLinkElement
impl AsRef<JsValue> for HtmlLinkElement
source§impl AsRef<Node> for HtmlLinkElement
impl AsRef<Node> for HtmlLinkElement
source§impl AsRef<Object> for HtmlLinkElement
impl AsRef<Object> for HtmlLinkElement
source§impl Clone for HtmlLinkElement
impl Clone for HtmlLinkElement
source§fn clone(&self) -> HtmlLinkElement
fn clone(&self) -> HtmlLinkElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlLinkElement
impl Debug for HtmlLinkElement
source§impl From<HtmlLinkElement> for Element
impl From<HtmlLinkElement> for Element
source§fn from(obj: HtmlLinkElement) -> Element
fn from(obj: HtmlLinkElement) -> Element
source§impl From<HtmlLinkElement> for EventTarget
impl From<HtmlLinkElement> for EventTarget
source§fn from(obj: HtmlLinkElement) -> EventTarget
fn from(obj: HtmlLinkElement) -> EventTarget
source§impl From<HtmlLinkElement> for HtmlElement
impl From<HtmlLinkElement> for HtmlElement
source§fn from(obj: HtmlLinkElement) -> HtmlElement
fn from(obj: HtmlLinkElement) -> HtmlElement
source§impl From<HtmlLinkElement> for JsValue
impl From<HtmlLinkElement> for JsValue
source§fn from(obj: HtmlLinkElement) -> JsValue
fn from(obj: HtmlLinkElement) -> JsValue
source§impl From<HtmlLinkElement> for Node
impl From<HtmlLinkElement> for Node
source§fn from(obj: HtmlLinkElement) -> Node
fn from(obj: HtmlLinkElement) -> Node
source§impl From<HtmlLinkElement> for Object
impl From<HtmlLinkElement> for Object
source§fn from(obj: HtmlLinkElement) -> Object
fn from(obj: HtmlLinkElement) -> Object
source§impl From<JsValue> for HtmlLinkElement
impl From<JsValue> for HtmlLinkElement
source§fn from(obj: JsValue) -> HtmlLinkElement
fn from(obj: JsValue) -> HtmlLinkElement
source§impl FromWasmAbi for HtmlLinkElement
impl FromWasmAbi for HtmlLinkElement
source§impl<'a> IntoWasmAbi for &'a HtmlLinkElement
impl<'a> IntoWasmAbi for &'a HtmlLinkElement
source§impl IntoWasmAbi for HtmlLinkElement
impl IntoWasmAbi for HtmlLinkElement
source§impl JsCast for HtmlLinkElement
impl JsCast for HtmlLinkElement
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 OptionFromWasmAbi for HtmlLinkElement
impl OptionFromWasmAbi for HtmlLinkElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlLinkElement
impl<'a> OptionIntoWasmAbi for &'a HtmlLinkElement
source§impl OptionIntoWasmAbi for HtmlLinkElement
impl OptionIntoWasmAbi for HtmlLinkElement
source§impl RefFromWasmAbi for HtmlLinkElement
impl RefFromWasmAbi for HtmlLinkElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlLinkElement>
type Anchor = ManuallyDrop<HtmlLinkElement>
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 HtmlLinkElement
impl Send for HtmlLinkElement
impl Sync for HtmlLinkElement
impl Unpin for HtmlLinkElement
impl UnwindSafe for HtmlLinkElement
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