pub struct TypedStructDecl {
pub name: String,
pub fields: Vec<TypedField>,
pub span: Span,
}Expand description
a typed struct declaration. mirror of ast::StructDecl with field types
resolved.
Fields§
§name: Stringthe struct’s name.
fields: Vec<TypedField>the typed fields, in declaration order.
span: Spanstruct keyword to closing }.
Trait Implementations§
Source§impl Clone for TypedStructDecl
impl Clone for TypedStructDecl
Source§fn clone(&self) -> TypedStructDecl
fn clone(&self) -> TypedStructDecl
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 moreSource§impl Debug for TypedStructDecl
impl Debug for TypedStructDecl
Source§impl PartialEq for TypedStructDecl
impl PartialEq for TypedStructDecl
Source§fn eq(&self, other: &TypedStructDecl) -> bool
fn eq(&self, other: &TypedStructDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedStructDecl
Auto Trait Implementations§
impl Freeze for TypedStructDecl
impl RefUnwindSafe for TypedStructDecl
impl Send for TypedStructDecl
impl Sync for TypedStructDecl
impl Unpin for TypedStructDecl
impl UnsafeUnpin for TypedStructDecl
impl UnwindSafe for TypedStructDecl
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