pub struct TypeInstanceDecl {
pub doc: Option<DocComment>,
pub name: Ident,
pub args: Vec<Type>,
pub rhs: Type,
pub span: Span,
}Expand description
A standalone type instance declaration (for open type families).
type instance F Int = Bool
Fields§
§doc: Option<DocComment>Documentation comment.
name: IdentThe family name.
args: Vec<Type>Type argument patterns.
rhs: TypeThe right-hand side type.
span: SpanThe span.
Trait Implementations§
Source§impl Clone for TypeInstanceDecl
impl Clone for TypeInstanceDecl
Source§fn clone(&self) -> TypeInstanceDecl
fn clone(&self) -> TypeInstanceDecl
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 TypeInstanceDecl
impl RefUnwindSafe for TypeInstanceDecl
impl Send for TypeInstanceDecl
impl Sync for TypeInstanceDecl
impl Unpin for TypeInstanceDecl
impl UnsafeUnpin for TypeInstanceDecl
impl UnwindSafe for TypeInstanceDecl
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