pub enum Shape {
Named,
Tuple,
Unit,
Newtype,
}
Expand description
Description of how fields in a struct or variant are syntactically laid out.
Variants§
Named
A set of named fields, e.g. { field: String }
.
Tuple
A list of unnamed fields, e.g. (String, u64)
.
Unit
No fields, e.g. struct Example;
Newtype
A special case of Tuple
with exactly one field, e.g. (String)
.
Implementations§
Trait Implementations§
source§impl FromIterator<Shape> for ShapeSet
impl FromIterator<Shape> for ShapeSet
impl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)