pub type Sketch = Sketch;Expand description
A sketch as a program holds it.
Aliased Type§
pub struct Sketch {
pub points: BTreeMap<PointId, Point>,
pub curves: BTreeMap<CurveId, Curve>,
pub constraints: BTreeMap<ConstraintId, Constraint>,
pub next_id: u64,
}Fields§
§points: BTreeMap<PointId, Point>§curves: BTreeMap<CurveId, Curve>§constraints: BTreeMap<ConstraintId, Constraint>§next_id: u64The id the next added entity gets; greater than every id in use. One
counter for all three kinds, so an id add_* hands out is unique
across the sketch.