Trait stam::SortTextualOrder
source · pub trait SortTextualOrder<T>where
T: PartialOrd,{
// Required method
fn textual_order(&mut self) -> Vec<T>;
}Expand description
This trait allows sorting a collection in textual order, meaning that items are returned in the same order as they appear in the original text.
Required Methods§
sourcefn textual_order(&mut self) -> Vec<T>
fn textual_order(&mut self) -> Vec<T>
Sorts items in the iterator in textual order, meaningthat items are returned in the same order as they appear in the original text. items that do not relate to text at all will be put at the end with arbitrary sorting This method allocates and returns a buffer to do the sorting.
It does deduplication only for iterators over TextSelection, ResultTextSelection.