pub trait WithChildrenSameLang: WithChildren {
    type TChildren<'a>: Children<Self::ChildIdx, Self::TreeId> + ?Sized
       where Self: 'a;

    // Required methods
    fn child_count(&self) -> Self::ChildIdx;
    fn child(&self, idx: &Self::ChildIdx) -> Option<Self::TreeId>;
    fn child_rev(&self, idx: &Self::ChildIdx) -> Option<Self::TreeId>;
    fn children(&self) -> Option<&Self::Children<'_>>;
}

Required Associated Types§

source

type TChildren<'a>: Children<Self::ChildIdx, Self::TreeId> + ?Sized where Self: 'a

Required Methods§

source

fn child_count(&self) -> Self::ChildIdx

source

fn child(&self, idx: &Self::ChildIdx) -> Option<Self::TreeId>

source

fn child_rev(&self, idx: &Self::ChildIdx) -> Option<Self::TreeId>

source

fn children(&self) -> Option<&Self::Children<'_>>

Implementors§