pub struct PriorityMax { /* private fields */ }
Expand description
A Peaker which goes over the biggest column first.
Implementations§
Source§impl PriorityMax
impl PriorityMax
Sourcepub fn new(priorities_right: bool) -> Self
pub fn new(priorities_right: bool) -> Self
Creates a PriorityMax
object with a side set to right or left,
It’s crusial in cases where both columns has equal widths and we need to peak a left or right.
Passing true means a right side. Passing false means a left side.
Sourcepub fn left() -> Self
pub fn left() -> Self
Creates a PriorityMax
object with left side prioritized,
See PriorityMax::new
.
Sourcepub fn right() -> Self
pub fn right() -> Self
Creates a PriorityMax
object with right side prioritized,
See PriorityMax::new
.
Trait Implementations§
Source§impl Clone for PriorityMax
impl Clone for PriorityMax
Source§fn clone(&self) -> PriorityMax
fn clone(&self) -> PriorityMax
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 PriorityMax
impl Debug for PriorityMax
Source§impl Default for PriorityMax
impl Default for PriorityMax
Source§fn default() -> PriorityMax
fn default() -> PriorityMax
Returns the “default value” for a type. Read more
Source§impl Hash for PriorityMax
impl Hash for PriorityMax
Source§impl Ord for PriorityMax
impl Ord for PriorityMax
Source§fn cmp(&self, other: &PriorityMax) -> Ordering
fn cmp(&self, other: &PriorityMax) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PriorityMax
impl PartialEq for PriorityMax
Source§impl PartialOrd for PriorityMax
impl PartialOrd for PriorityMax
Source§impl Peaker for PriorityMax
impl Peaker for PriorityMax
impl Copy for PriorityMax
impl Eq for PriorityMax
impl StructuralPartialEq for PriorityMax
Auto Trait Implementations§
impl Freeze for PriorityMax
impl RefUnwindSafe for PriorityMax
impl Send for PriorityMax
impl Sync for PriorityMax
impl Unpin for PriorityMax
impl UnwindSafe for PriorityMax
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