pub enum StructContent {
NamedFields(Vec<NamedField>),
UnnamedField(UnnamedField),
}Expand description
A list of fields. The fields are either all named or all unnamed.
Variants§
NamedFields(Vec<NamedField>)
A struct that is composed of named fields.
Example:
struct Example {
field_one: String,
field_two: Vec<i32>,
}UnnamedField(UnnamedField)
A struct that is composed of a single unnamed field.
Example:
struct Example(i32);Trait Implementations§
Source§impl Clone for StructContent
impl Clone for StructContent
Source§fn clone(&self) -> StructContent
fn clone(&self) -> StructContent
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 StructContent
impl Debug for StructContent
Source§impl PartialEq for StructContent
impl PartialEq for StructContent
impl StructuralPartialEq for StructContent
Auto Trait Implementations§
impl Freeze for StructContent
impl RefUnwindSafe for StructContent
impl Send for StructContent
impl Sync for StructContent
impl Unpin for StructContent
impl UnwindSafe for StructContent
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