Struct syntex_syntax::codemap::MultiByteChar [] [src]

pub struct MultiByteChar {
    pub pos: BytePos,
    pub bytes: usize,
}

Identifies an offset of a multi-byte character in a FileMap

Fields

pos

The absolute offset of the character in the CodeMap

bytes

The number of bytes, >=2

Trait Implementations

Derived Implementations

impl PartialEq for MultiByteChar

fn eq(&self, __arg_0: &MultiByteChar) -> bool

fn ne(&self, __arg_0: &MultiByteChar) -> bool

impl Eq for MultiByteChar

impl Decodable for MultiByteChar

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MultiByteChar, __D::Error>

impl Encodable for MultiByteChar

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for MultiByteChar

fn clone(&self) -> MultiByteChar

fn clone_from(&mut self, source: &Self)

impl Copy for MultiByteChar