pub struct Mode {
pub ascending: ModePosition,
pub descending: ModePosition,
}Fields§
§ascending: ModePosition§descending: ModePositionImplementations§
Source§impl Mode
impl Mode
pub const fn new(position: usize, system: ModeSystem) -> Self
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn collapse( &self, interval: Interval, rounding_strategy: RoundingStrategy, ) -> Interval
pub fn checked_collapse( &self, interval: Interval, rounding_strategy: RoundingStrategy, ) -> Option<Interval>
pub fn expand( &self, interval: Interval, rounding_strategy: RoundingStrategy, ) -> Interval
pub fn checked_expand( &self, interval: Interval, rounding_strategy: RoundingStrategy, ) -> Option<Interval>
Trait Implementations§
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
Source§impl ShlAssign<usize> for Mode
impl ShlAssign<usize> for Mode
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the
<<= operation. Read moreSource§impl ShrAssign<usize> for Mode
impl ShrAssign<usize> for Mode
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the
>>= operation. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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