pub enum Type {
Primitive(Primitive),
Named {
path: Path,
args: Vec<Type>,
},
Pointer(Box<Type>),
Ref(Box<Type>),
RvalueRef(Box<Type>),
Const(Box<Type>),
Array {
element: Box<Type>,
length: Box<Expr>,
},
Void,
Auto,
}Expand description
A C++ type as it will be written.
Variants§
Primitive(Primitive)
A built-in.
Named
A named type with any template arguments.
Pointer(Box<Type>)
T *
Ref(Box<Type>)
T &
RvalueRef(Box<Type>)
T &&
Const(Box<Type>)
const T
Array
T[N]
Void
void
Auto
auto
Implementations§
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more