[−][src]Struct script::dom::htmllinkelement::HTMLLinkElement
Fields
htmlelement: HTMLElementrel_list: MutNullableDom<DOMTokenList>stylesheet: DomRefCell<Option<Arc<Stylesheet>>>cssom_stylesheet: MutNullableDom<CSSStyleSheet>parser_inserted: Cell<bool>pending_loads: Cell<u32>The number of loads that this link element has triggered (could be more than one because of imports) and have not yet finished.
any_failed_load: Cell<bool>Whether any of the loads have failed.
request_generation_id: Cell<RequestGenerationId>A monotonically increasing counter that keeps track of which stylesheet to apply.
Implementations
impl HTMLLinkElement[src]
fn __assert_parent_type(&self)[src]
impl HTMLLinkElement[src]
fn new_inherited(
local_name: LocalName,
prefix: Option<Prefix>,
document: &Document,
creator: ElementCreator
) -> HTMLLinkElement[src]
local_name: LocalName,
prefix: Option<Prefix>,
document: &Document,
creator: ElementCreator
) -> HTMLLinkElement
pub fn new(
local_name: LocalName,
prefix: Option<Prefix>,
document: &Document,
creator: ElementCreator
) -> Root<Dom<HTMLLinkElement>>[src]
local_name: LocalName,
prefix: Option<Prefix>,
document: &Document,
creator: ElementCreator
) -> Root<Dom<HTMLLinkElement>>
pub fn get_request_generation_id(&self) -> RequestGenerationId[src]
pub fn set_stylesheet(&self, s: Arc<Stylesheet>)[src]
pub fn get_stylesheet(&self) -> Option<Arc<Stylesheet>>[src]
pub fn get_cssom_stylesheet(&self) -> Option<Root<Dom<CSSStyleSheet>>>[src]
pub fn is_alternate(&self) -> bool[src]
impl HTMLLinkElement[src]
fn handle_stylesheet_url(&self, href: &str)[src]
fn handle_favicon_url(&self, _rel: &str, href: &str, _sizes: &Option<String>)[src]
Trait Implementations
impl Castable for HTMLLinkElement[src]
fn is<T>(&self) -> bool where
T: DerivedFrom<Self>, [src]
T: DerivedFrom<Self>,
fn upcast<T>(&self) -> &T where
T: Castable,
Self: DerivedFrom<T>, [src]
T: Castable,
Self: DerivedFrom<T>,
fn downcast<T>(&self) -> Option<&T> where
T: DerivedFrom<Self>, [src]
T: DerivedFrom<Self>,
impl DerivedFrom<Element> for HTMLLinkElement[src]
impl DerivedFrom<EventTarget> for HTMLLinkElement[src]
impl DerivedFrom<HTMLElement> for HTMLLinkElement[src]
impl DerivedFrom<Node> for HTMLLinkElement[src]
impl DomObject for HTMLLinkElement[src]
fn reflector(&self) -> &Reflector[src]
fn global(&self) -> Root<Dom<GlobalScope>> where
Self: Sized, [src]
Self: Sized,
impl DomObjectWrap for HTMLLinkElement[src]
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>>[src]
impl HTMLLinkElementMethods for HTMLLinkElement[src]
fn Href(&self) -> USVString[src]
fn SetHref(&self, value: USVString)[src]
fn Rel(&self) -> DOMString[src]
fn SetRel(&self, rel: DOMString)[src]
fn Media(&self) -> DOMString[src]
fn SetMedia(&self, value: DOMString)[src]
fn Integrity(&self) -> DOMString[src]
fn SetIntegrity(&self, value: DOMString)[src]
fn Hreflang(&self) -> DOMString[src]
fn SetHreflang(&self, value: DOMString)[src]
fn Type(&self) -> DOMString[src]
fn SetType(&self, value: DOMString)[src]
fn RelList(&self) -> Root<Dom<DOMTokenList>>[src]
fn Charset(&self) -> DOMString[src]
fn SetCharset(&self, value: DOMString)[src]
fn Rev(&self) -> DOMString[src]
fn SetRev(&self, value: DOMString)[src]
fn Target(&self) -> DOMString[src]
fn SetTarget(&self, value: DOMString)[src]
fn GetCrossOrigin(&self) -> Option<DOMString>[src]
fn SetCrossOrigin(&self, value: Option<DOMString>)[src]
fn GetSheet(&self) -> Option<Root<Dom<DOMStyleSheet>>>[src]
impl HasParent for HTMLLinkElement[src]
type Parent = HTMLElement
fn as_parent(&self) -> &HTMLElement[src]
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
impl IDLInterface for HTMLLinkElement[src]
impl JSTraceable for HTMLLinkElement[src]
impl MallocSizeOf for HTMLLinkElement[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
impl MutDomObject for HTMLLinkElement[src]
unsafe fn init_reflector(&self, obj: *mut JSObject)[src]
impl PartialEq<HTMLLinkElement> for HTMLLinkElement[src]
fn eq(&self, other: &HTMLLinkElement) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StylesheetOwner for HTMLLinkElement[src]
fn increment_pending_loads_count(&self)[src]
fn load_finished(&self, succeeded: bool) -> Option<bool>[src]
fn parser_inserted(&self) -> bool[src]
fn referrer_policy(&self) -> Option<ReferrerPolicy>[src]
fn set_origin_clean(&self, origin_clean: bool)[src]
impl ToJSValConvertible for HTMLLinkElement[src]
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue)[src]
impl VirtualMethods for HTMLLinkElement[src]
fn super_type(&self) -> Option<&dyn VirtualMethods>[src]
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation)[src]
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue[src]
fn bind_to_tree(&self, context: &BindContext)[src]
fn unbind_from_tree(&self, context: &UnbindContext)[src]
fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool[src]
fn children_changed(&self, mutation: &ChildrenMutation)[src]
fn handle_event(&self, event: &Event)[src]
fn adopting_steps(&self, old_doc: &Document)[src]
fn cloning_steps(
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)[src]
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)
fn pop(&self)[src]
Auto Trait Implementations
impl !RefUnwindSafe for HTMLLinkElement
impl !Send for HTMLLinkElement
impl !Sync for HTMLLinkElement
impl Unpin for HTMLLinkElement
impl !UnwindSafe for HTMLLinkElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeBoxed<Box<T>> for T[src]
fn maybe_boxed(self) -> Box<T>[src]
impl<T> MaybeBoxed<T> for T[src]
fn maybe_boxed(self) -> T[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> SetParameter for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,