pub enum SortCriteria {
Name,
Number,
Group,
Resolution,
TvgId,
}Expand description
Criteria for sorting playlist entries.
Variants§
Name
Alphabetical by display name.
Number
Numeric by channel number (tvg_chno).
Group
Alphabetical by group title.
Resolution
By resolution tier (Unknown < SD < HD < FHD < UHD).
TvgId
By tvg_id — numeric when parseable, string fallback.
Faithfully ported from iptvtools/models.py::__custom_sort which
strips non-digit characters and parses as integer, falling back to
sys.maxsize for non-numeric IDs.
Trait Implementations§
Source§impl Clone for SortCriteria
impl Clone for SortCriteria
Source§fn clone(&self) -> SortCriteria
fn clone(&self) -> SortCriteria
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SortCriteria
impl Debug for SortCriteria
Source§impl PartialEq for SortCriteria
impl PartialEq for SortCriteria
impl Copy for SortCriteria
impl Eq for SortCriteria
impl StructuralPartialEq for SortCriteria
Auto Trait Implementations§
impl Freeze for SortCriteria
impl RefUnwindSafe for SortCriteria
impl Send for SortCriteria
impl Sync for SortCriteria
impl Unpin for SortCriteria
impl UnsafeUnpin for SortCriteria
impl UnwindSafe for SortCriteria
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