Enum ast_demangle::rust_v0::Const
source · [−]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)
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
Placeholder
Implementations
Trait Implementations
sourceimpl<'a> Ord for Const<'a>
impl<'a> Ord for Const<'a>
sourceimpl<'a> PartialOrd<Const<'a>> for Const<'a>
impl<'a> PartialOrd<Const<'a>> for Const<'a>
sourcefn partial_cmp(&self, other: &Const<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Const<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<'a> Eq for Const<'a>
impl<'a> StructuralEq for Const<'a>
impl<'a> StructuralPartialEq for Const<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Const<'a>
impl<'a> !Send for Const<'a>
impl<'a> !Sync for Const<'a>
impl<'a> Unpin for Const<'a>
impl<'a> UnwindSafe for Const<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more