[][src]Enum ss_trees::tree::STree

pub enum STree<M, SN, SL, IN, IL> {
    Leaf(SLeaf<M, SN, SL, IN, IL>),
    Node(SNode<M, SN, SL, IN, IL>),
}

Variants

Leaf(SLeaf<M, SN, SL, IN, IL>)Node(SNode<M, SN, SL, IN, IL>)

Methods

impl<M, SN, SL, IN, IL> STree<M, SN, SL, IN, IL>[src]

pub fn get_meta(&self, api: &dyn TreeApi<M, SN, SL, IN, IL>) -> M[src]

pub fn to_either(
    &self
) -> Either<&SNode<M, SN, SL, IN, IL>, &SLeaf<M, SN, SL, IN, IL>>
[src]

pub fn to_either_mut(
    &mut self
) -> Either<&mut SNode<M, SN, SL, IN, IL>, &mut SLeaf<M, SN, SL, IN, IL>>
[src]

pub fn to_either_inner(&self) -> Either<&SN, &SL>[src]

pub fn to_either_inner_mut(&mut self) -> Either<&mut SN, &mut SL>[src]

pub fn unpack_leaf(&self) -> Option<&SLeaf<M, SN, SL, IN, IL>>[src]

pub fn unpack_node(&self) -> Option<&SNode<M, SN, SL, IN, IL>>[src]

pub fn unpack_leaf_mut(&mut self) -> Option<&mut SLeaf<M, SN, SL, IN, IL>>[src]

pub fn unpack_node_mut(&mut self) -> Option<&mut SNode<M, SN, SL, IN, IL>>[src]

impl<M, SN, SL, IN, IL> STree<M, SN, SL, IN, IL> where
    M: PartialEq + Clone + Debug,
    SN: PartialEq + Debug,
    SL: PartialEq + Debug,
    IN: PartialEq + Debug,
    IL: PartialEq + Debug
[src]

pub fn from(
    api: &dyn TreeApi<M, SN, SL, IN, IL>,
    parent: &M,
    new: ITree<IN, IL>
) -> Self
[src]

impl<M, SN, SL, IN, IL> STree<M, SN, SL, IN, IL> where
    M: PartialEq + Clone + Debug,
    SN: PartialEq + Debug,
    SL: PartialEq + Debug,
    IN: PartialEq + Debug,
    IL: PartialEq + Debug
[src]

pub fn unchanged(
    &self,
    api: &dyn TreeApi<M, SN, SL, IN, IL>,
    other: &ITree<IN, IL>
) -> bool
[src]

pub fn recyclable(
    &self,
    api: &dyn TreeApi<M, SN, SL, IN, IL>,
    other: &ITree<IN, IL>
) -> bool
[src]

pub fn sync(
    &mut self,
    api: &dyn TreeApi<M, SN, SL, IN, IL>,
    parent: &M,
    new: ITree<IN, IL>
)
[src]

Trait Implementations

impl<M: Clone, SN: Clone, SL: Clone, IN: Clone, IL: Clone> Clone for STree<M, SN, SL, IN, IL>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<M: PartialEq, SN: PartialEq, SL: PartialEq, IN: PartialEq, IL: PartialEq> PartialEq<STree<M, SN, SL, IN, IL>> for STree<M, SN, SL, IN, IL>[src]

impl<M: Debug, SN: Debug, SL: Debug, IN: Debug, IL: Debug> Debug for STree<M, SN, SL, IN, IL>[src]

Auto Trait Implementations

impl<M, SN, SL, IN, IL> Send for STree<M, SN, SL, IN, IL> where
    IL: Send,
    IN: Send,
    M: Send,
    SL: Send,
    SN: Send

impl<M, SN, SL, IN, IL> Sync for STree<M, SN, SL, IN, IL> where
    IL: Sync,
    IN: Sync,
    M: Sync,
    SL: Sync,
    SN: Sync

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]