[][src]Struct script::dom::node::UnbindContext

pub struct UnbindContext<'a> {
    index: Cell<Option<u32>>,
    pub parent: &'a Node,
    prev_sibling: Option<&'a Node>,
    pub next_sibling: Option<&'a Node>,
    pub tree_connected: bool,
    pub tree_in_doc: bool,
}

The context of the unbinding from a tree of a node when one of its inclusive ancestors is removed.

Fields

index: Cell<Option<u32>>

The index of the inclusive ancestor that was removed.

parent: &'a Node

The parent of the inclusive ancestor that was removed.

prev_sibling: Option<&'a Node>

The previous sibling of the inclusive ancestor that was removed.

next_sibling: Option<&'a Node>

The next sibling of the inclusive ancestor that was removed.

tree_connected: bool

Whether the tree is connected.

tree_in_doc: bool

Whether the tree is in doc.

Implementations

impl<'a> UnbindContext<'a>[src]

pub fn new(
    parent: &'a Node,
    prev_sibling: Option<&'a Node>,
    next_sibling: Option<&'a Node>,
    cached_index: Option<u32>
) -> Self
[src]

Create a new UnbindContext value.

pub fn index(&self) -> u32[src]

The index of the inclusive ancestor that was removed from the tree.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for UnbindContext<'a>

impl<'a> !Send for UnbindContext<'a>

impl<'a> !Sync for UnbindContext<'a>

impl<'a> Unpin for UnbindContext<'a>

impl<'a> !UnwindSafe for UnbindContext<'a>

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]