pub struct Type {
pub name: String,
pub bare: bool,
pub generic_arg: Option<Box<Type>>,
}
Expand description
The type of a definition or a parameter.
Fields§
§name: String
The name of the type.
bare: bool
Whether this type is bare or boxed.
generic_arg: Option<Box<Type>>
If the type has a generic argument, which is its type.
Trait Implementations§
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 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