pub enum StructKind {
AlwaysSized,
MaybeUnsized,
Prefixed(Size, Align),
}
Variants§
AlwaysSized
A tuple, closure, or univariant which cannot be coerced to unsized.
MaybeUnsized
A univariant, the last field of which may be coerced to unsized.
Prefixed(Size, Align)
A univariant, but with a prefix of an arbitrary size & alignment (e.g., enum tag).
Trait Implementations§
Source§impl Clone for StructKind
impl Clone for StructKind
Source§fn clone(&self) -> StructKind
fn clone(&self) -> StructKind
Returns a copy 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 StructKind
impl Debug for StructKind
impl Copy for StructKind
Auto Trait Implementations§
impl Freeze for StructKind
impl RefUnwindSafe for StructKind
impl Send for StructKind
impl Sync for StructKind
impl Unpin for StructKind
impl UnwindSafe for StructKind
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