pub struct FieldDeclaration {
pub name: String,
pub ty: FieldType,
}
Expand description
A field declaration inside a struct
Fields§
§name: String
§ty: FieldType
Implementations§
Trait Implementations§
Source§impl Clone for FieldDeclaration
impl Clone for FieldDeclaration
Source§fn clone(&self) -> FieldDeclaration
fn clone(&self) -> FieldDeclaration
Returns a copy 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 FieldDeclaration
impl Debug for FieldDeclaration
Source§impl PartialEq for FieldDeclaration
impl PartialEq for FieldDeclaration
impl StructuralPartialEq for FieldDeclaration
Auto Trait Implementations§
impl Freeze for FieldDeclaration
impl RefUnwindSafe for FieldDeclaration
impl Send for FieldDeclaration
impl Sync for FieldDeclaration
impl Unpin for FieldDeclaration
impl UnwindSafe for FieldDeclaration
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