Trait hyper_ast::types::WithChildren
source · pub trait WithChildren: Node + Stored {
type ChildIdx: PrimInt;
type Children<'a>: Children<Self::ChildIdx, <Self::TreeId as NodeId>::IdN> + ?Sized
where Self: 'a;
// Required methods
fn child_count(&self) -> Self::ChildIdx;
fn child(
&self,
idx: &Self::ChildIdx
) -> Option<<Self::TreeId as NodeId>::IdN>;
fn child_rev(
&self,
idx: &Self::ChildIdx
) -> Option<<Self::TreeId as NodeId>::IdN>;
fn children(&self) -> Option<&Self::Children<'_>>;
}