Enum syntax::codemap::NonNarrowChar [−][src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Identifies an offset of a non-narrow character in a FileMap
Variants
ZeroWidth(BytePos)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Represents a zero-width character
Wide(BytePos)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Represents a wide (fullwidth) character
Tab(BytePos)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Represents a tab character, represented visually with a width of 4 characters
Methods
impl NonNarrowChar[src]
impl NonNarrowCharpub fn pos(&self) -> BytePos[src]
pub fn pos(&self) -> BytePos🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the absolute offset of the character in the CodeMap
pub fn width(&self) -> usize[src]
pub fn width(&self) -> usize🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the width of the character, 0 (zero-width) or 2 (wide)
Trait Implementations
impl Add<BytePos> for NonNarrowChar[src]
impl Add<BytePos> for NonNarrowChartype Output = NonNarrowChar
The resulting type after applying the + operator.
fn add(self, rhs: BytePos) -> NonNarrowChar[src]
fn add(self, rhs: BytePos) -> NonNarrowCharPerforms the + operation.
impl Clone for NonNarrowChar[src]
impl Clone for NonNarrowCharfn clone(&self) -> NonNarrowChar[src]
fn clone(&self) -> NonNarrowCharReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for NonNarrowChar[src]
impl Debug for NonNarrowCharfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for NonNarrowChar[src]
impl Copy for NonNarrowCharimpl Sub<BytePos> for NonNarrowChar[src]
impl Sub<BytePos> for NonNarrowChartype Output = NonNarrowChar
The resulting type after applying the - operator.
fn sub(self, rhs: BytePos) -> NonNarrowChar[src]
fn sub(self, rhs: BytePos) -> NonNarrowCharPerforms the - operation.
impl Decodable for NonNarrowChar[src]
impl Decodable for NonNarrowCharfn decode<__D>(d: &mut __D) -> Result<NonNarrowChar, <__D as Decoder>::Error> where
__D: Decoder, [src]
fn decode<__D>(d: &mut __D) -> Result<NonNarrowChar, <__D as Decoder>::Error> where
__D: Decoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Eq for NonNarrowChar[src]
impl Eq for NonNarrowCharfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Encodable for NonNarrowChar[src]
impl Encodable for NonNarrowCharfn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, [src]
fn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl PartialEq<NonNarrowChar> for NonNarrowChar[src]
impl PartialEq<NonNarrowChar> for NonNarrowCharfn eq(&self, other: &NonNarrowChar) -> bool[src]
fn eq(&self, other: &NonNarrowChar) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NonNarrowChar) -> bool[src]
fn ne(&self, other: &NonNarrowChar) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for NonNarrowChar
impl Send for NonNarrowCharimpl Sync for NonNarrowChar
impl Sync for NonNarrowChar