pub struct VirtualEventNode { /* private fields */ }
Expand description

A tree where each entry holds the events for the corresponding entry in a crate::VirtualNode tree.

Implementations§

source§

impl VirtualEventNode

source

pub fn as_element(&self) -> Option<&VirtualEventElement>

Get the [VirtualEventNode::VirtualEventElement] variant.

source

pub fn as_element_mut(&mut self) -> Option<&mut VirtualEventElement>

Get a mutable reference to the [VirtualEventNode::VirtualEventElement] variant.

source

pub fn previous_sibling(&self) -> Option<&Rc<RefCell<VirtualEventNode>>>

Get the previous sibling.

source

pub fn next_sibling(&self) -> Option<&Rc<RefCell<VirtualEventNode>>>

Get the next sibling.

source

pub fn replace_with_node(&mut self, new: VirtualEventNode)

Replace a node with another.

The new node is given the same siblings as the old node.

source

pub fn remove_node_from_siblings( &mut self, child: &Rc<RefCell<VirtualEventNode>> )

Remove a child node from it’s siblings.

source

pub fn insert_before( &mut self, new: Rc<RefCell<VirtualEventNode>>, existing: Rc<RefCell<VirtualEventNode>> )

Insert a node before another node.

Trait Implementations§

source§

impl Debug for VirtualEventNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.