pub trait StartSegmentationChain<'a> {
// Required method
fn start_segmentation_chain(
self,
) -> impl Iterator<Item = SegmentedToken<'a>>;
}
Expand description
Helper for starting an iterator chain.
Turns any str
or String
into an iterator over a single SegmentedToken.
(Can also deal with anything else that implements Into<SegmentedToken>
.)
Required Methods§
Sourcefn start_segmentation_chain(self) -> impl Iterator<Item = SegmentedToken<'a>>
fn start_segmentation_chain(self) -> impl Iterator<Item = SegmentedToken<'a>>
Create the iterator.
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.