Skip to main content

ExpandableDocument

Trait ExpandableDocument 

Source
pub trait ExpandableDocument<'a>: Document
where <Self as Document>::Term: 'a,
{ 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§

Source

type TermIterator: Iterator<Item = &'a Self::Term>

The type of iterator that this implementor returns.

Required Methods§

Source

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".

Implementors§