pub enum Type {
Array {
ty: Box<Type>,
size: usize,
},
Primitive(PrimitiveType),
Path(String),
Slice {
ty: Box<Type>,
},
}Variants§
Implementations§
Source§impl Type
impl Type
pub fn base_nonprimitive_type(&self) -> Option<&String>
pub fn base_type(&self) -> TypeSpecifierNonArray
pub fn as_field(&self, ident: &str) -> StructFieldSpecifier
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin 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