Enum ast_demangle::rust_v0::Const [−][src]
pub enum Const<'a> {
Show 21 variants
I8(i8),
U8(u8),
Isize(isize),
Usize(usize),
I32(i32),
U32(u32),
I128(i128),
U128(u128),
I16(i16),
U16(u16),
I64(i64),
U64(u64),
Bool(bool),
Char(char),
Str(String),
Ref(Rc<Const<'a>>),
RefMut(Rc<Const<'a>>),
Array(Vec<Rc<Const<'a>>>),
Tuple(Vec<Rc<Const<'a>>>),
NamedStruct {
path: Rc<Path<'a>>,
fields: ConstFields<'a>,
},
Placeholder,
}Variants
I8(i8)Tuple Fields of I8
0: i8U8(u8)Tuple Fields of U8
0: u8Isize(isize)Tuple Fields of Isize
0: isizeUsize(usize)Tuple Fields of Usize
0: usizeI32(i32)Tuple Fields of I32
0: i32U32(u32)Tuple Fields of U32
0: u32I128(i128)Tuple Fields of I128
0: i128U128(u128)Tuple Fields of U128
0: u128I16(i16)Tuple Fields of I16
0: i16U16(u16)Tuple Fields of U16
0: u16I64(i64)Tuple Fields of I64
0: i64U64(u64)Tuple Fields of U64
0: u64Bool(bool)Tuple Fields of Bool
0: boolChar(char)Tuple Fields of Char
0: charStr(String)Tuple Fields of Str
0: StringFields of NamedStruct
path: Rc<Path<'a>>fields: ConstFields<'a>Implementations
Returns an object that implements Display for printing the constant value.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Const<'a>
impl<'a> UnwindSafe for Const<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more