Home
last modified time | relevance | path

Searched refs:CChar (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/rust-cexpr/src/
H A Dliteral.rs13 //! Character literals are stored into the `CChar` type, which can hold values
56 pub enum CChar { enum
63 impl From<u8> for CChar {
64 fn from(i: u8) -> CChar { in from()
66 0..=0x7f => CChar::Char(i as u8 as char), in from()
67 _ => CChar::Raw(i as u64), in from()
73 impl std::convert::Into<Vec<u8>> for CChar {
76 CChar::Char(c) => { in into()
81 CChar::Raw(i) => { in into()
151 fn escape2char(c: char) -> CChar { in escape2char()
[all...]
H A Dexpr.rs29 use crate::literal::{self, CChar};
55 Char(CChar),
77 result_opt!(fn as_char: Char -> CChar);
/third_party/rust/crates/rust-cexpr/tests/
H A Dclang.rs18 use cexpr::literal::CChar;
87 .map(CChar::Raw) in test_definition()
94 .map(CChar::Char) in test_definition()
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dvar.rs179 use cexpr::literal::CChar; in parse()
232 CChar::Char(c) => { in parse()
236 CChar::Raw(c) => { in parse()

Completed in 5 milliseconds