Enum syntax_pos::NonNarrowChar
[−]
[src]
pub enum NonNarrowChar {
ZeroWidth(BytePos),
Wide(BytePos),
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?
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]
pub fn pos(&self) -> BytePos[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?
Returns the absolute offset of the character in the CodeMap
pub fn width(&self) -> usize[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?
Returns the width of the character, 0 (zero-width) or 2 (wide)
Trait Implementations
impl Copy for NonNarrowChar[src]
impl Clone for NonNarrowChar[src]
fn clone(&self) -> NonNarrowChar[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Encodable for NonNarrowChar[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[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?
impl Decodable for NonNarrowChar[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<NonNarrowChar, __D::Error>[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?
impl Eq for NonNarrowChar[src]
impl PartialEq for NonNarrowChar[src]
fn eq(&self, __arg_0: &NonNarrowChar) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NonNarrowChar) -> bool[src]
This method tests for !=.
impl Add<BytePos> for NonNarrowChar[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: BytePos) -> Self[src]
Performs the + operation.