pub enum Type {
}Expand description
A type expressible in .ud source.
v0 covers C-like primitives plus single-level pointer wrapping.
Anything we can’t recover (composite types, qualifiers, function
pointers) lands as Type::Unknown, which the parser still
accepts so the round-trip closes.
Variants§
Void
I8
I16
I32
I64
U8
U16
U32
U64
F32
F64
Bool
Char
Pointer(Box<Type>)
ptr<T> — pointer to T.
Unknown
A type the source language can’t yet express. Round-trips
verbatim as the literal token unknown.
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