[][src]Struct azul_core::diff::DomRange

pub struct DomRange {
    pub start: NodeId,
    pub end: NodeId,
}

Fields

start: NodeIdend: NodeId

Implementations

impl DomRange[src]

pub fn new(start: NodeId, end: NodeId) -> Self[src]

pub fn single_node(node_id: NodeId) -> Self[src]

impl DomRange[src]

pub fn contains(&self, other: &Self) -> bool[src]

Is other a subtree of self? - Assumes that the DOM was constructed in a linear order, i.e. the child being within the parents start / end bounds

pub fn equals_range(&self, other: &Self) -> bool[src]

Compares two DOM ranges without looking at the DOM hashes (not equivalent to ==)

Trait Implementations

impl Clone for DomRange[src]

impl Copy for DomRange[src]

impl Debug for DomRange[src]

impl Display for DomRange[src]

impl Eq for DomRange[src]

impl Hash for DomRange[src]

impl Ord for DomRange[src]

impl PartialEq<DomRange> for DomRange[src]

impl PartialOrd<DomRange> for DomRange[src]

impl StructuralEq for DomRange[src]

impl StructuralPartialEq for DomRange[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.