pub enum TypeShape {
Struct(&'static [FieldInfo]),
Enum(&'static [VariantInfo]),
}Available on crate feature
reflection only.Expand description
Static structural shape generated for a reflected type.
Variants§
Struct(&'static [FieldInfo])
A struct or tuple struct.
Enum(&'static [VariantInfo])
An enum and all its variants.
Trait Implementations§
impl Copy for TypeShape
impl Eq for TypeShape
impl StructuralPartialEq for TypeShape
Auto Trait Implementations§
impl Freeze for TypeShape
impl RefUnwindSafe for TypeShape
impl Send for TypeShape
impl Sync for TypeShape
impl Unpin for TypeShape
impl UnsafeUnpin for TypeShape
impl UnwindSafe for TypeShape
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