[][src]Struct rustc_ap_rustc_span::CharPos

pub struct CharPos(pub usize);

A character offset. Because of multibyte UTF-8 characters, a byte offset is not equivalent to a character offset. The SourceMap will convert BytePos values to CharPos values as necessary.

Trait Implementations

impl Add<CharPos> for CharPos[src]

type Output = CharPos

The resulting type after applying the + operator.

impl Clone for CharPos[src]

impl Copy for CharPos[src]

impl Debug for CharPos[src]

impl Eq for CharPos[src]

impl Ord for CharPos[src]

impl PartialEq<CharPos> for CharPos[src]

impl PartialOrd<CharPos> for CharPos[src]

impl Pos for CharPos[src]

impl StructuralEq for CharPos[src]

impl StructuralPartialEq for CharPos[src]

impl Sub<CharPos> for CharPos[src]

type Output = CharPos

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for CharPos

impl Send for CharPos

impl Sync for CharPos

impl Unpin for CharPos

impl UnwindSafe for CharPos

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.