Enum ast_demangle::rust_v0::Type [−][src]
pub enum Type<'a> {
Basic(BasicType),
Named(Rc<Path<'a>>),
Array(Rc<Type<'a>>, Rc<Const<'a>>),
Slice(Rc<Type<'a>>),
Tuple(Vec<Rc<Type<'a>>>),
Ref {
lifetime: u64,
type_: Rc<Type<'a>>,
},
RefMut {
lifetime: u64,
type_: Rc<Type<'a>>,
},
PtrConst(Rc<Type<'a>>),
PtrMut(Rc<Type<'a>>),
Fn(FnSig<'a>),
DynTrait {
dyn_bounds: DynBounds<'a>,
lifetime: u64,
},
}Variants
Basic(BasicType)Tuple Fields of Basic
0: BasicTypeFn(FnSig<'a>)Tuple Fields of Fn
0: FnSig<'a>Implementations
Returns an object that implements Display for printing the type.
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 Type<'a>
impl<'a> UnwindSafe for Type<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more