pub struct StructField { /* private fields */ }Expand description
A field of a struct declaration.
Trait Implementations§
Source§impl Clone for StructField
impl Clone for StructField
Source§fn clone(&self) -> StructField
fn clone(&self) -> StructField
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 StructField
impl Debug for StructField
Source§impl Hash for StructField
impl Hash for StructField
Source§impl Ord for StructField
impl Ord for StructField
Source§fn cmp(&self, other: &StructField) -> Ordering
fn cmp(&self, other: &StructField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StructField
impl PartialEq for StructField
Source§impl PartialOrd for StructField
impl PartialOrd for StructField
Source§impl Statement for StructField
impl Statement for StructField
Source§fn write(&self, b: &mut CodeBuffer, level: usize)
fn write(&self, b: &mut CodeBuffer, level: usize)
Writes the code to the buffer
b at the indent level.Source§impl WithAccess for StructField
impl WithAccess for StructField
Source§fn set_access<A>(&mut self, access: A)
fn set_access<A>(&mut self, access: A)
Sets the
access level.Source§fn with_access<A>(self, access: A) -> Self
fn with_access<A>(self, access: A) -> Self
Sets the
access level.Source§fn write_access(&self, b: &mut CodeBuffer)
fn write_access(&self, b: &mut CodeBuffer)
Writes the access level.
Source§impl WithName for StructField
impl WithName for StructField
Source§fn write_name(&self, b: &mut CodeBuffer)
fn write_name(&self, b: &mut CodeBuffer)
Writes the name.
Source§impl WithRustType for StructField
impl WithRustType for StructField
Source§fn write_rust_type(&self, b: &mut CodeBuffer)
fn write_rust_type(&self, b: &mut CodeBuffer)
Writes the Rust type.
Source§impl WithVar for StructField
impl WithVar for StructField
impl Eq for StructField
impl StructuralPartialEq for StructField
Auto Trait Implementations§
impl Freeze for StructField
impl RefUnwindSafe for StructField
impl Send for StructField
impl Sync for StructField
impl Unpin for StructField
impl UnwindSafe for StructField
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