pub enum Class {
Any,
Bool,
String,
Integer,
Number,
Array,
Map,
OpenObject,
Named,
}Expand description
The class of a type’s shape, which decides at compile time which #[shape(...)] constraints may apply to a field
of that type. A named type (a derived struct or enum) is written as a reference to its definition, so no
constraint applies to the field itself.
Variants§
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Forget for Class
impl Freeze for Class
impl Move for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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