pub struct AssocType {
pub name: Ident,
pub params: Vec<TyVar>,
pub kind: Option<Kind>,
pub default: Option<Type>,
pub span: Span,
}Expand description
An associated type declaration within a type class.
Example: type Elem c in class Collection c where type Elem c
Fields§
§name: IdentThe name of the associated type.
params: Vec<TyVar>Type parameters (in addition to class params).
kind: Option<Kind>Optional kind signature.
default: Option<Type>Optional default type.
span: SpanThe span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssocType
impl RefUnwindSafe for AssocType
impl Send for AssocType
impl Sync for AssocType
impl Unpin for AssocType
impl UnsafeUnpin for AssocType
impl UnwindSafe for AssocType
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