pub struct DataFamilyDecl {
pub doc: Option<DocComment>,
pub name: Ident,
pub params: Vec<TyVar>,
pub kind: Option<Kind>,
pub span: Span,
}Expand description
A standalone data family declaration: data family F a
Fields§
§doc: Option<DocComment>Documentation comment.
name: IdentThe family name.
params: Vec<TyVar>Type parameters.
kind: Option<Kind>Optional result kind signature.
span: SpanThe span.
Trait Implementations§
Source§impl Clone for DataFamilyDecl
impl Clone for DataFamilyDecl
Source§fn clone(&self) -> DataFamilyDecl
fn clone(&self) -> DataFamilyDecl
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 DataFamilyDecl
impl RefUnwindSafe for DataFamilyDecl
impl Send for DataFamilyDecl
impl Sync for DataFamilyDecl
impl Unpin for DataFamilyDecl
impl UnsafeUnpin for DataFamilyDecl
impl UnwindSafe for DataFamilyDecl
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