pub struct AssocTypeDef {
pub name: Ident,
pub args: Vec<Type>,
pub rhs: Type,
pub span: Span,
}Expand description
An associated type definition within an instance.
Example: type Elem [a] = a in instance Collection [a] where type Elem [a] = a
Fields§
§name: IdentThe name of the associated type.
args: Vec<Type>Type arguments (patterns for the associated type).
rhs: TypeThe definition (right-hand side).
span: SpanThe span.
Trait Implementations§
Source§impl Clone for AssocTypeDef
impl Clone for AssocTypeDef
Source§fn clone(&self) -> AssocTypeDef
fn clone(&self) -> AssocTypeDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AssocTypeDef
impl RefUnwindSafe for AssocTypeDef
impl Send for AssocTypeDef
impl Sync for AssocTypeDef
impl Unpin for AssocTypeDef
impl UnsafeUnpin for AssocTypeDef
impl UnwindSafe for AssocTypeDef
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