Struct gluon_base::pos::Line
pub struct Line(pub u32);
Expand description
A zero-indexed line offset into a source file
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
§impl Add<LineOffset> for LineIndex
impl Add<LineOffset> for LineIndex
§impl AddAssign<LineOffset> for LineIndex
impl AddAssign<LineOffset> for LineIndex
§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+=
operation. Read more§impl<'de> Deserialize<'de> for LineIndex
impl<'de> Deserialize<'de> for LineIndex
§fn deserialize<__D>(
__deserializer: __D
) -> Result<LineIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LineIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for LineIndex
impl Ord for LineIndex
§impl PartialOrd for LineIndex
impl PartialOrd for LineIndex
§fn partial_cmp(&self, other: &LineIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &LineIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl Serialize for LineIndex
impl Serialize for LineIndex
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Sub<LineOffset> for LineIndex
impl Sub<LineOffset> for LineIndex
§impl Sub for LineIndex
impl Sub for LineIndex
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
-
operator.§fn sub(self, rhs: LineIndex) -> LineOffset
fn sub(self, rhs: LineIndex) -> LineOffset
Performs the
-
operation. Read more§impl SubAssign<LineOffset> for LineIndex
impl SubAssign<LineOffset> for LineIndex
§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-=
operation. Read moreimpl Copy for LineIndex
impl Eq for LineIndex
impl StructuralEq for LineIndex
impl StructuralPartialEq for LineIndex
Auto Trait Implementations§
impl RefUnwindSafe for LineIndex
impl Send for LineIndex
impl Sync for LineIndex
impl Unpin for LineIndex
impl UnwindSafe for LineIndex
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