Enum cexpr::literal::CChar [] [src]

pub enum CChar {
    Char(char),
    Raw(u64),
}

Representation of a C character

Variants

Char(char)

A character that can be represented as a char

Raw(u64)

Any other character (8-bit characters, unicode surrogates, etc.)

Trait Implementations

impl Eq for CChar
[src]

impl PartialEq for CChar
[src]

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

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

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

This method tests for !=.

impl Clone for CChar
[src]

fn clone(&self) -> CChar

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for CChar
[src]

impl Debug for CChar
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<u8> for CChar
[src]

fn from(i: u8) -> CChar

Performs the conversion.

impl Into<Vec<u8>> for CChar
[src]

fn into(self) -> Vec<u8>

Performs the conversion.