pub enum Line {
Generic(Generic<Self>),
LineFromPoints(Expr<Point>, Expr<Point>),
AngleBisector(Expr<Point>, Expr<Point>, Expr<Point>),
PerpendicularThrough(Expr<Line>, Expr<Point>),
ParallelThrough(Expr<Line>, Expr<Point>),
}
Variants§
Generic(Generic<Self>)
LineFromPoints(Expr<Point>, Expr<Point>)
AngleBisector(Expr<Point>, Expr<Point>, Expr<Point>)
PerpendicularThrough(Expr<Line>, Expr<Point>)
ParallelThrough(Expr<Line>, Expr<Point>)
Implementations§
Trait Implementations§
source§impl CloneWithNode for Line
impl CloneWithNode for Line
fn clone_with_node(&mut self) -> Self
fn clone_without_node(&self) -> Self
source§impl ConvertFrom<AnyExpr> for Line
impl ConvertFrom<AnyExpr> for Line
source§fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(value: &AnyExpr) -> bool
source§impl ConvertFrom<Expr<Bundle>> for Line
impl ConvertFrom<Expr<Bundle>> for Line
source§fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Bundle>) -> bool
source§impl ConvertFrom<Expr<Circle>> for Line
impl ConvertFrom<Expr<Circle>> for Line
source§fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Circle>) -> bool
source§impl ConvertFrom<Expr<Line>> for Line
impl ConvertFrom<Expr<Line>> for Line
source§fn convert_from(value: Expr<Line>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Line>, _context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Line>) -> bool
source§impl ConvertFrom<Expr<Point>> for Line
impl ConvertFrom<Expr<Point>> for Line
source§fn convert_from(value: Expr<Point>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Point>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Point>) -> bool
source§impl ConvertFrom<Expr<PointCollection>> for Line
impl ConvertFrom<Expr<PointCollection>> for Line
source§fn convert_from(
value: Expr<PointCollection>,
context: &CompileContext,
) -> Expr<Self>
fn convert_from( value: Expr<PointCollection>, context: &CompileContext, ) -> Expr<Self>
Errors Read more
fn can_convert_from(value: &Expr<PointCollection>) -> bool
source§impl ConvertFrom<Expr<Scalar>> for Line
impl ConvertFrom<Expr<Scalar>> for Line
source§fn convert_from(value: Expr<Scalar>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Scalar>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Scalar>) -> bool
source§impl ConvertFrom<Expr<Unknown>> for Line
impl ConvertFrom<Expr<Unknown>> for Line
source§fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Unknown>) -> bool
source§impl FromExpr<Line> for LineNode
impl FromExpr<Line> for LineNode
fn from_expr( expr: &Expr<Line>, props: Properties, context: &CompileContext, ) -> Self
source§impl FromUnrolled<Line> for ExprKind
impl FromUnrolled<Line> for ExprKind
source§impl GetMathType for Line
impl GetMathType for Line
fn get_math_type() -> ExprType
source§impl GetValueType for Line
impl GetValueType for Line
fn get_value_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Line
impl !RefUnwindSafe for Line
impl !Send for Line
impl !Sync for Line
impl Unpin for Line
impl !UnwindSafe for Line
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>,
Errors Read more
source§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Errors Read more