pub enum Circle {
Generic(Generic<Self>),
Circle(Expr<Point>, Expr<Number>),
}
Expand description
An unrolled circle expression.
Variants§
Generic(Generic<Self>)
A generic expression
Circle(Expr<Point>, Expr<Number>)
A circle constructed from its center and radius.
Implementations§
Trait Implementations§
Source§impl CloneWithNode for Circle
impl CloneWithNode for Circle
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 Circle
impl ConvertFrom<AnyExpr> for Circle
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 Circle
impl ConvertFrom<Expr<Circle>> for Circle
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 Circle
impl ConvertFrom<Expr<Derived>> for Circle
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 Circle
impl ConvertFrom<Expr<Line>> for Circle
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 Circle
impl ConvertFrom<Expr<Number>> for Circle
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 Circle
impl ConvertFrom<Expr<Point>> for Circle
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 Circle
impl ConvertFrom<Expr<PointCollection>> for Circle
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 Circle
impl ConvertFrom<Expr<Unknown>> for Circle
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 Displayed for Circle
impl Displayed for Circle
Source§type Node = CircleNode
type Node = CircleNode
The display node type to use for displaying
Self
Source§impl FromExpr<Circle> for CircleNode
impl FromExpr<Circle> for CircleNode
Source§fn from_expr(
expr: &Expr<Circle>,
props: Properties,
context: &CompileContext,
) -> Self
fn from_expr( expr: &Expr<Circle>, props: Properties, context: &CompileContext, ) -> Self
Build a node out of an unrolled expression.
Source§impl FromUnrolled<Circle> for ExprKind
impl FromUnrolled<Circle> for ExprKind
Source§impl GetMathType for Circle
impl GetMathType for Circle
fn get_math_type() -> ExprType
Source§impl GetValueType for Circle
impl GetValueType for Circle
fn get_value_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Circle
impl !RefUnwindSafe for Circle
impl !Send for Circle
impl !Sync for Circle
impl Unpin for Circle
impl !UnwindSafe for Circle
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