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§
Required Methods§
Sourcefn prefix_iter<'a>(
&'a self,
prefix: KeyPrefix,
) -> impl Iterator<Item = <Self::Item as VariadicExt>::AsRefVar<'a>>where
Self::Item: 'a,
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.