pub trait ExpandableDocument<'a>: Document{
type TermIterator: Iterator<Item = &'a Self::Term>;
// Required method
fn terms(&self) -> Self::TermIterator;
}Expand description
A document that can be expanded to a collection of terms.
Required Associated Types§
Sourcetype TermIterator: Iterator<Item = &'a Self::Term>
type TermIterator: Iterator<Item = &'a Self::Term>
The type of iterator that this implementor returns.
Required Methods§
Sourcefn terms(&self) -> Self::TermIterator
fn terms(&self) -> Self::TermIterator
An iterator over the terms in the document.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".