pub struct StructFieldDecl {
pub span: Span,
pub ty: TypeSpec,
pub names: Vec<NamedItem>,
}Expand description
One structure field declaration statement.
Fields§
§span: SpanSource span covering the declaration.
ty: TypeSpecField type.
names: Vec<NamedItem>Field names declared by this statement.
Trait Implementations§
Source§impl Clone for StructFieldDecl
impl Clone for StructFieldDecl
Source§fn clone(&self) -> StructFieldDecl
fn clone(&self) -> StructFieldDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 StructFieldDecl
impl Debug for StructFieldDecl
Source§impl<'de> Deserialize<'de> for StructFieldDecl
impl<'de> Deserialize<'de> for StructFieldDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StructFieldDecl
impl PartialEq for StructFieldDecl
Source§impl Serialize for StructFieldDecl
impl Serialize for StructFieldDecl
impl StructuralPartialEq for StructFieldDecl
Auto Trait Implementations§
impl Freeze for StructFieldDecl
impl RefUnwindSafe for StructFieldDecl
impl Send for StructFieldDecl
impl Sync for StructFieldDecl
impl Unpin for StructFieldDecl
impl UnsafeUnpin for StructFieldDecl
impl UnwindSafe for StructFieldDecl
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