[−][src]Struct script::dom::node::UnbindContext
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 NodeThe 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: boolWhether the tree is connected.
tree_in_doc: boolWhether 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]
parent: &'a Node,
prev_sibling: Option<&'a Node>,
next_sibling: Option<&'a Node>,
cached_index: Option<u32>
) -> Self
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]
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>,