pub enum Shape {
Empty(Position),
Boolean(PositionedItem<bool>),
Int(PositionedItem<i64>),
Float(PositionedItem<f64>),
Str(PositionedItem<String>),
Symbol(PositionedItem<String>),
Tuple(PositionedItem<ShapeTuple>),
List(PositionedItem<ShapeList>),
Func(FuncShapeDef),
Module(ModuleShapeDef),
}
Expand description
Shapes represent the types that UCG values or expressions can have.
Variants§
Empty(Position)
Boolean(PositionedItem<bool>)
Int(PositionedItem<i64>)
Float(PositionedItem<f64>)
Str(PositionedItem<String>)
Symbol(PositionedItem<String>)
Tuple(PositionedItem<ShapeTuple>)
List(PositionedItem<ShapeList>)
Func(FuncShapeDef)
Module(ModuleShapeDef)
Trait Implementations§
Source§impl TryFrom<&Expression> for Shape
impl TryFrom<&Expression> for Shape
Source§type Error = BuildError
type Error = BuildError
The type returned in the event of a conversion error.
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