pub struct SortKind { /* private fields */ }Expand description
Describe a way of sorting
Implementations§
source§impl SortKind
impl SortKind
sourcepub fn update_from_char(&mut self, c: char)
pub fn update_from_char(&mut self, c: char)
Updates itself from a given character. If the character describes a kind of sort, we apply it. (k n m s e – K N M S E) If the character is lowercase, we sort by Ascending order, else Descending order. If the character is ‘r’ or ‘R’ we reverse current kind of sort.
pub fn sort(&self, files: &mut [FileInfo])
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SortKind
impl Send for SortKind
impl Sync for SortKind
impl Unpin for SortKind
impl UnwindSafe for SortKind
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().