pub struct OneBased(/* private fields */);Expand description
A helper type which avoids tripping over Unix terminal’s one-indexed conventions.
Coordinates and terminal dimensions are one-based in Termina on both Unix and Windows.
Implementations§
Trait Implementations§
Source§impl From<NonZero<u16>> for OneBased
impl From<NonZero<u16>> for OneBased
Source§fn from(n: NonZeroU16) -> Self
fn from(n: NonZeroU16) -> Self
Converts to this type from the input type.
impl Copy for OneBased
impl Eq for OneBased
impl StructuralPartialEq for OneBased
Auto Trait Implementations§
impl Freeze for OneBased
impl RefUnwindSafe for OneBased
impl Send for OneBased
impl Sync for OneBased
impl Unpin for OneBased
impl UnsafeUnpin for OneBased
impl UnwindSafe for OneBased
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