pub enum StructField {
Scalar(Ident),
VecScalar(Ident),
Point(Ident),
VecPoint(Ident),
}Expand description
Names and types of fields that might end up in a generated struct
Variants§
Implementations§
Source§impl StructField
impl StructField
Sourcepub fn ident(&self) -> Ident
pub fn ident(&self) -> Ident
Extract the Ident from the StructField
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for StructField
impl !Sync for StructField
impl Freeze for StructField
impl RefUnwindSafe for StructField
impl Unpin for StructField
impl UnsafeUnpin 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