pub struct TypeHeader {
pub generics: Vec<Generic>,
pub ctor: Option<Vec<Param>>,
pub bases: Vec<Type>,
pub constraints: Vec<Where>,
pub has: Vec<Expr>,
}Expand description
A type’s name and what follows it: generics, its primary constructor, what it implements, the constraints, the components it has.
Fields§
§generics: Vec<Generic>§ctor: Option<Vec<Param>>§bases: Vec<Type>§constraints: Vec<Where>§has: Vec<Expr>Trait Implementations§
Source§impl Clone for TypeHeader
impl Clone for TypeHeader
Source§impl Debug for TypeHeader
impl Debug for TypeHeader
Source§impl Default for TypeHeader
impl Default for TypeHeader
Source§impl PartialEq for TypeHeader
impl PartialEq for TypeHeader
impl StructuralPartialEq for TypeHeader
Auto Trait Implementations§
impl Freeze for TypeHeader
impl RefUnwindSafe for TypeHeader
impl Send for TypeHeader
impl Sync for TypeHeader
impl Unpin for TypeHeader
impl UnsafeUnpin for TypeHeader
impl UnwindSafe for TypeHeader
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