pub struct ByteColumn(/* private fields */);Expand description
1-based byte column offset from the start of a line.
Zero is invalid; use ByteColumn::try_new to reject it explicitly.
Implementations§
Trait Implementations§
Source§impl Clone for ByteColumn
impl Clone for ByteColumn
Source§fn clone(&self) -> ByteColumn
fn clone(&self) -> ByteColumn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteColumn
Source§impl Debug for ByteColumn
impl Debug for ByteColumn
Source§impl Display for ByteColumn
impl Display for ByteColumn
impl Eq for ByteColumn
Source§impl From<ByteColumn> for usize
impl From<ByteColumn> for usize
Source§fn from(value: ByteColumn) -> Self
fn from(value: ByteColumn) -> Self
Converts to this type from the input type.
Source§impl Hash for ByteColumn
impl Hash for ByteColumn
Source§impl Ord for ByteColumn
impl Ord for ByteColumn
Source§fn cmp(&self, other: &ByteColumn) -> Ordering
fn cmp(&self, other: &ByteColumn) -> Ordering
1.21.0 (const: unstable) · 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 ByteColumn
impl PartialEq for ByteColumn
Source§fn eq(&self, other: &ByteColumn) -> bool
fn eq(&self, other: &ByteColumn) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ByteColumn
impl PartialOrd for ByteColumn
impl StructuralPartialEq for ByteColumn
Auto Trait Implementations§
impl Freeze for ByteColumn
impl RefUnwindSafe for ByteColumn
impl Send for ByteColumn
impl Sync for ByteColumn
impl Unpin for ByteColumn
impl UnsafeUnpin for ByteColumn
impl UnwindSafe for ByteColumn
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