Enum impl_tools_lib::fields::StructStyle
source · pub enum StructStyle {
Unit(Semi),
Tuple(Paren, Semi),
Regular(Brace),
}
Expand description
Struct style: unit/tuple/regular
Variants§
Unit(Semi)
A unit struct (e.g. struct Foo;
)
Tuple(Paren, Semi)
A tuple struct (e.g. struct Foo(f32, f32);
)
Regular(Brace)
A regular struct (e.g. struct Foo { x: f32, y: f32 }
)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StructStyle
impl !Send for StructStyle
impl !Sync for StructStyle
impl Unpin for StructStyle
impl UnwindSafe for StructStyle
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