pub struct Line(pub usize);Expand description
A line
Newtype to avoid passing values incorrectly
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl AddAssign<usize> for Line
 
impl AddAssign<usize> for Line
Source§fn add_assign(&mut self, rhs: usize)
 
fn add_assign(&mut self, rhs: usize)
Performs the 
+= operation. Read moreSource§impl AddAssign for Line
 
impl AddAssign for Line
Source§fn add_assign(&mut self, rhs: Line)
 
fn add_assign(&mut self, rhs: Line)
Performs the 
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Line
 
impl<'de> Deserialize<'de> for Line
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Line
 
impl Ord for Line
Source§impl PartialOrd for Line
 
impl PartialOrd for Line
Source§impl SubAssign<usize> for Line
 
impl SubAssign<usize> for Line
Source§fn sub_assign(&mut self, rhs: usize)
 
fn sub_assign(&mut self, rhs: usize)
Performs the 
-= operation. Read moreSource§impl SubAssign for Line
 
impl SubAssign for Line
Source§fn sub_assign(&mut self, rhs: Line)
 
fn sub_assign(&mut self, rhs: Line)
Performs the 
-= operation. Read moreimpl Copy for Line
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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