Struct gluon_base::pos::ByteIndex
pub struct ByteIndex(pub u32);
Expand description
A byte position in a source file.
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
§impl Add<ByteOffset> for ByteIndex
impl Add<ByteOffset> for ByteIndex
§impl AddAssign<ByteOffset> for ByteIndex
impl AddAssign<ByteOffset> for ByteIndex
§fn add_assign(&mut self, rhs: ByteOffset)
fn add_assign(&mut self, rhs: ByteOffset)
Performs the
+=
operation. Read more§impl<'de> Deserialize<'de> for ByteIndex
impl<'de> Deserialize<'de> for ByteIndex
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ByteIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ByteIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Ord for ByteIndex
impl Ord for ByteIndex
§impl PartialOrd for ByteIndex
impl PartialOrd for ByteIndex
§fn partial_cmp(&self, other: &ByteIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &ByteIndex) -> 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 ByteIndex
impl Serialize for ByteIndex
§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<ByteOffset> for ByteIndex
impl Sub<ByteOffset> for ByteIndex
§impl Sub for ByteIndex
impl Sub for ByteIndex
§type Output = ByteOffset
type Output = ByteOffset
The resulting type after applying the
-
operator.§fn sub(self, rhs: ByteIndex) -> ByteOffset
fn sub(self, rhs: ByteIndex) -> ByteOffset
Performs the
-
operation. Read more§impl SubAssign<ByteOffset> for ByteIndex
impl SubAssign<ByteOffset> for ByteIndex
§fn sub_assign(&mut self, rhs: ByteOffset)
fn sub_assign(&mut self, rhs: ByteOffset)
Performs the
-=
operation. Read moreimpl Copy for ByteIndex
impl Eq for ByteIndex
impl StructuralEq for ByteIndex
impl StructuralPartialEq for ByteIndex
Auto Trait Implementations§
impl RefUnwindSafe for ByteIndex
impl Send for ByteIndex
impl Sync for ByteIndex
impl Unpin for ByteIndex
impl UnwindSafe for ByteIndex
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