[][src]Struct script::dom::htmllinkelement::HTMLLinkElement

#[repr(C)]pub struct HTMLLinkElement {
    htmlelement: HTMLElement,
    rel_list: MutNullableDom<DOMTokenList>,
    stylesheet: DomRefCell<Option<Arc<Stylesheet>>>,
    cssom_stylesheet: MutNullableDom<CSSStyleSheet>,
    parser_inserted: Cell<bool>,
    pending_loads: Cell<u32>,
    any_failed_load: Cell<bool>,
    request_generation_id: Cell<RequestGenerationId>,
}

Fields

htmlelement: HTMLElementrel_list: MutNullableDom<DOMTokenList>stylesheet: DomRefCell<Option<Arc<Stylesheet>>>cssom_stylesheet: MutNullableDom<CSSStyleSheet>parser_inserted: Cell<bool>

https://html.spec.whatwg.org/multipage/#a-style-sheet-that-is-blocking-scripts

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]

pub fn new(
    local_name: LocalName,
    prefix: Option<Prefix>,
    document: &Document,
    creator: ElementCreator
) -> Root<Dom<HTMLLinkElement>>
[src]

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]

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]

impl DomObjectWrap for HTMLLinkElement[src]

impl HTMLLinkElementMethods for HTMLLinkElement[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]

impl MutDomObject for HTMLLinkElement[src]

impl PartialEq<HTMLLinkElement> for HTMLLinkElement[src]

impl StylesheetOwner for HTMLLinkElement[src]

impl ToJSValConvertible for HTMLLinkElement[src]

impl VirtualMethods for HTMLLinkElement[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> MaybeBoxed<Box<T>> for T[src]

impl<T> MaybeBoxed<T> for 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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]