pub enum Point {
Generic(Generic<Self>),
Average(ClonedVec<Expr<Point>>),
LineLineIntersection(Expr<Line>, Expr<Line>),
CircleCenter(Expr<Circle>),
Free,
FromComplex(Expr<Number>),
}
Expand description
An unrolled point expression
Variants§
Generic(Generic<Self>)
A generic expression
Average(ClonedVec<Expr<Point>>)
Arithmetic mean of points as complex numbers.
LineLineIntersection(Expr<Line>, Expr<Line>)
Intersection of two lines.
CircleCenter(Expr<Circle>)
Center of a circle.
Free
A free point.
FromComplex(Expr<Number>)
A point made from a complex number.
Implementations§
Trait Implementations§
Source§impl CloneWithNode for Point
impl CloneWithNode for Point
Source§fn clone_with_node(&mut self) -> Self
fn clone_with_node(&mut self) -> Self
Clone
self
and take its node.Source§fn clone_without_node(&self) -> Self
fn clone_without_node(&self) -> Self
Clone
self
without taking its node.Source§impl ConvertFrom<AnyExpr> for Point
impl ConvertFrom<AnyExpr> for Point
Source§fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§fn can_convert_from(value: &AnyExpr) -> bool
fn can_convert_from(value: &AnyExpr) -> bool
Check if conversion from a value to
Self
can be made.Source§impl ConvertFrom<Expr<Circle>> for Point
impl ConvertFrom<Expr<Circle>> for Point
Source§fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl ConvertFrom<Expr<Derived>> for Point
impl ConvertFrom<Expr<Derived>> for Point
Source§fn convert_from(value: Expr<Derived>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Derived>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl ConvertFrom<Expr<Line>> for Point
impl ConvertFrom<Expr<Line>> for Point
Source§fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl ConvertFrom<Expr<Number>> for Point
impl ConvertFrom<Expr<Number>> for Point
Source§fn convert_from(value: Expr<Number>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Number>, context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl ConvertFrom<Expr<Point>> for Point
impl ConvertFrom<Expr<Point>> for Point
Source§fn convert_from(value: Expr<Point>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Point>, _context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl ConvertFrom<Expr<PointCollection>> for Point
impl ConvertFrom<Expr<PointCollection>> for Point
Source§fn convert_from(
value: Expr<PointCollection>,
context: &CompileContext,
) -> Expr<Self>
fn convert_from( value: Expr<PointCollection>, context: &CompileContext, ) -> Expr<Self>
Convert a value to
Self
. Read moreSource§fn can_convert_from(value: &Expr<PointCollection>) -> bool
fn can_convert_from(value: &Expr<PointCollection>) -> bool
Check if conversion from a value to
Self
can be made.Source§impl ConvertFrom<Expr<Unknown>> for Point
impl ConvertFrom<Expr<Unknown>> for Point
Source§fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
Convert a value to
Self
. Read moreSource§impl FromExpr<Point> for PointNode
impl FromExpr<Point> for PointNode
Source§fn from_expr(
expr: &Expr<Point>,
props: Properties,
context: &CompileContext,
) -> Self
fn from_expr( expr: &Expr<Point>, props: Properties, context: &CompileContext, ) -> Self
Build a node out of an unrolled expression.
Source§impl FromUnrolled<Point> for ExprKind
impl FromUnrolled<Point> for ExprKind
Source§impl GetMathType for Point
impl GetMathType for Point
fn get_math_type() -> ExprType
Source§impl GetValueType for Point
impl GetValueType for Point
fn get_value_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Point
impl !RefUnwindSafe for Point
impl !Send for Point
impl !Sync for Point
impl Unpin for Point
impl !UnwindSafe for Point
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
Source§impl<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more