Trait hyper_ast::types::Labeled

source ·
pub trait Labeled {
    type Label: Eq;

    // Required methods
    fn get_label_unchecked<'a>(&'a self) -> &'a Self::Label;
    fn try_get_label<'a>(&'a self) -> Option<&'a Self::Label>;
}

Required Associated Types§

Required Methods§

source

fn get_label_unchecked<'a>(&'a self) -> &'a Self::Label

source

fn try_get_label<'a>(&'a self) -> Option<&'a Self::Label>

Implementors§

source§

impl<'a, Id: TypedNodeId<IdN = NodeIdentifier>> Labeled for HashedNode<Id>

source§

impl<'a, T> Labeled for hyper_ast::store::nodes::fetched::HashedNodeRef<'a, T>

source§

impl<'a, T> Labeled for hyper_ast::store::nodes::legion::HashedNodeRef<'a, T>

source§

impl<H: Hash + PrimInt, U: NodeHashs<Hash = H>, N, L: Eq, T> Labeled for HashedCompressedNode<U, N, L, T>

§

type Label = L

source§

impl<N, L: Eq, T> Labeled for CompressedNode<N, L, T>

§

type Label = L