pub struct SortOptions {
pub descending: bool,
pub case_insensitive: bool,
pub numeric: bool,
pub remove_duplicates: bool,
pub by_length: bool,
}Fields§
§descending: bool§case_insensitive: bool§numeric: boolCompare by the number at the start of each line (integer or decimal); lines without one sort first.
remove_duplicates: boolDrop lines equal to the line before them after sorting.
by_length: boolCompare by length in characters (then as text).
Trait Implementations§
Source§impl Clone for SortOptions
impl Clone for SortOptions
impl Copy for SortOptions
Source§impl Debug for SortOptions
impl Debug for SortOptions
Source§impl Default for SortOptions
impl Default for SortOptions
Source§impl<'de> Deserialize<'de> for SortOptions
impl<'de> Deserialize<'de> for SortOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SortOptions
Source§impl PartialEq for SortOptions
impl PartialEq for SortOptions
Source§impl Serialize for SortOptions
impl Serialize for SortOptions
impl StructuralPartialEq for SortOptions
Auto Trait Implementations§
impl Freeze for SortOptions
impl RefUnwindSafe for SortOptions
impl Send for SortOptions
impl Sync for SortOptions
impl Unpin for SortOptions
impl UnsafeUnpin for SortOptions
impl UnwindSafe for SortOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more