pub struct NamedType<'a> {
pub id: Ident<'a>,
pub ty: Type<'a>,
}
Expand description
Represents a name and an associated type in the AST.
Fields§
§id: Ident<'a>
The identifier of the type.
ty: Type<'a>
The type.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NamedType<'a>
impl<'a> RefUnwindSafe for NamedType<'a>
impl<'a> Send for NamedType<'a>
impl<'a> Sync for NamedType<'a>
impl<'a> Unpin for NamedType<'a>
impl<'a> UnwindSafe for NamedType<'a>
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