Expand description
Shape authoring helpers: documented and value-backed shape wrappers plus shape registration and checking utilities.
Structs§
- Documented
Shape - Shape wrapper that overrides only the documentation of an inner shape, delegating all matching and binding behavior unchanged.
Constants§
- CORE_
SHAPE_ CLASS - Name of the core class under which shapes are registered.
Functions§
- check_
shape_ expr - Checks an expression against the shape behind a shape reference.
- check_
shape_ value - Checks a value against the shape behind a shape reference.
- shape_
id - Registers
shapeundersymboland returns its assigned shape id. - shape_
ref_ arc - Wraps a shape reference in a reusable
Arc<dyn Shape>handle. - shape_
ref_ as_ shape - Borrows the shape behind a shape reference, or errors if it is not a shape.
- shape_
ref_ id - Returns the shape id behind a shape reference, or
ShapeId(0)if none. - shape_
value - Wrap a shape as a kernel value: an opaque
ShapeObjectthat carries the given symbol as the shape’s name and exposes it as a callable matcher. - shape_
value_ with_ encoding - Like
shape_valuebut also records the constructor encoding so the resulting value can be re-encoded back to its constructor expression. - value_
as_ shape - Borrows the shape backing a value, or errors if it is not a shape.