Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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