pub enum NonNarrowChar {
ZeroWidth(RelativeBytePos),
Wide(RelativeBytePos),
Tab(RelativeBytePos),
}Expand description
Identifies an offset of a non-narrow character in a SourceFile.
Variants§
ZeroWidth(RelativeBytePos)
Represents a zero-width character.
Wide(RelativeBytePos)
Represents a wide (full-width) character.
Tab(RelativeBytePos)
Represents a tab character, represented visually with a width of 4 characters.
Implementations§
Source§impl NonNarrowChar
impl NonNarrowChar
Trait Implementations§
Source§impl Add<RelativeBytePos> for NonNarrowChar
impl Add<RelativeBytePos> for NonNarrowChar
Source§type Output = NonNarrowChar
type Output = NonNarrowChar
The resulting type after applying the
+ operator.Source§fn add(self, rhs: RelativeBytePos) -> Self
fn add(self, rhs: RelativeBytePos) -> Self
Performs the
+ operation. Read moreSource§impl Clone for NonNarrowChar
impl Clone for NonNarrowChar
Source§fn clone(&self) -> NonNarrowChar
fn clone(&self) -> NonNarrowChar
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NonNarrowChar
impl Debug for NonNarrowChar
Source§impl PartialEq for NonNarrowChar
impl PartialEq for NonNarrowChar
Source§impl Sub<RelativeBytePos> for NonNarrowChar
impl Sub<RelativeBytePos> for NonNarrowChar
Source§type Output = NonNarrowChar
type Output = NonNarrowChar
The resulting type after applying the
- operator.Source§fn sub(self, rhs: RelativeBytePos) -> Self
fn sub(self, rhs: RelativeBytePos) -> Self
Performs the
- operation. Read moreimpl Copy for NonNarrowChar
impl Eq for NonNarrowChar
impl StructuralPartialEq for NonNarrowChar
Auto Trait Implementations§
impl Freeze for NonNarrowChar
impl RefUnwindSafe for NonNarrowChar
impl Send for NonNarrowChar
impl Sync for NonNarrowChar
impl Unpin for NonNarrowChar
impl UnwindSafe for NonNarrowChar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more