Enum syntax_pos::NonNarrowChar[][src]

pub enum NonNarrowChar {
    ZeroWidth(BytePos),
    Wide(BytePos),
    Tab(BytePos),
}

Identifies an offset of a non-narrow character in a FileMap

Variants

Represents a zero-width character

Represents a wide (fullwidth) character

Represents a tab character, represented visually with a width of 4 characters

Methods

impl NonNarrowChar
[src]

Returns the absolute offset of the character in the CodeMap

Returns the width of the character, 0 (zero-width) or 2 (wide)

Trait Implementations

impl Copy for NonNarrowChar
[src]

impl Clone for NonNarrowChar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for NonNarrowChar
[src]

impl Decodable for NonNarrowChar
[src]

impl Eq for NonNarrowChar
[src]

impl PartialEq for NonNarrowChar
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Add<BytePos> for NonNarrowChar
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<BytePos> for NonNarrowChar
[src]

The resulting type after applying the - operator.

Performs the - operation.

Auto Trait Implementations