Trait lattices::ght::GhtPrefixIter

source ·
pub trait GhtPrefixIter<KeyPrefix> {
    type Item: VariadicExt;

    // Required method
    fn prefix_iter<'a>(
        &'a self,
        prefix: KeyPrefix,
    ) -> impl Iterator<Item = <Self::Item as VariadicExt>::AsRefVar<'a>>
       where Self::Item: 'a;
}
Expand description

A trait to iterate through the items in a Ght based on a prefix of the schema.

Required Associated Types§

source

type Item: VariadicExt

the schema output

Required Methods§

source

fn prefix_iter<'a>( &'a self, prefix: KeyPrefix, ) -> impl Iterator<Item = <Self::Item as VariadicExt>::AsRefVar<'a>>
where Self::Item: 'a,

given a prefix, return an iterator through the items below

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'k, Head, Node, PrefixRest> GhtPrefixIter<(&'k Head, PrefixRest)> for GhtInner<Head, Node>
where Head: Eq + Hash + Clone, Node: GeneralizedHashTrieNode + GhtPrefixIter<PrefixRest>,

source§

type Item = <Node as GhtPrefixIter<PrefixRest>>::Item

source§

impl<Head, Node> GhtPrefixIter<()> for GhtInner<Head, Node>

source§

impl<KeyPrefixRef, Schema, ValType, Storage> GhtPrefixIter<KeyPrefixRef> for GhtLeaf<Schema, ValType, Storage>
where KeyPrefixRef: 'static + RefVariadic, Schema: 'static + VariadicExt + Hash + Eq + SplitBySuffix<ValType>, ValType: VariadicExt + Split<KeyPrefixRef::UnRefVar>, KeyPrefixRef::UnRefVar: PartialEqVariadic, Storage: 'static + VariadicCollection<Schema = Schema>,

source§

type Item = Schema