pub enum Shape {
}Variants§
Str
Num
Int
int in the type dialect.
Bool
Null
Undefined
LitStr(String)
LitNum(f64)
LitBool(bool)
Union(Vec<Shape>)
Array(Box<Shape>)
Tuple(Vec<Shape>)
Object(Vec<(String, bool, Shape)>, Option<Box<Shape>>)
Named properties (name, optional, shape), and the value shape of an index signature.
Ref(String, Vec<Shape>)
A named type, resolved against the types in scope when values are generated.
Any
Anything: any, unknown, or what this module does not model.
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Forget for Shape
impl Freeze for Shape
impl Move for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin 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