[−][src]Struct codespan::ByteIndex
A byte position in a source file.
Implementations
impl ByteIndex
[src][−]
pub const fn to_usize(self) -> usize
[src][−]
Convert the position into a usize
, for use in array indexing
Trait Implementations
impl Add<ByteOffset> for ByteIndex
[src][+]
impl AddAssign<ByteOffset> for ByteIndex
[src][+]
impl Clone for ByteIndex
[src][+]
impl Copy for ByteIndex
[src]
impl Debug for ByteIndex
[src][+]
impl Default for ByteIndex
[src][+]
impl Display for ByteIndex
[src][+]
impl Eq for ByteIndex
[src]
impl From<ByteIndex> for RawIndex
[src][+]
impl From<ByteIndex> for usize
[src][+]
impl From<u32> for ByteIndex
[src][+]
impl Hash for ByteIndex
[src][+]
impl Index for ByteIndex
[src]
type Offset = ByteOffset
impl Ord for ByteIndex
[src][+]
impl PartialEq<ByteIndex> for ByteIndex
[src][+]
impl PartialOrd<ByteIndex> for ByteIndex
[src][+]
impl StructuralEq for ByteIndex
[src]
impl StructuralPartialEq for ByteIndex
[src]
impl Sub<ByteIndex> for ByteIndex
[src][+]
impl Sub<ByteOffset> for ByteIndex
[src][+]
impl SubAssign<ByteOffset> for ByteIndex
[src][+]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,