Enum Circle

Source
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

Source§

fn clone_with_node(&mut self) -> Self

Clone self and take its node.
Source§

fn clone_without_node(&self) -> Self

Clone self without taking its node.
Source§

impl ConvertFrom<AnyExpr> for Circle

Source§

fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

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

Source§

fn convert_from(value: Expr<Circle>, _context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Circle>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl ConvertFrom<Expr<Derived>> for Circle

Source§

fn convert_from(value: Expr<Derived>, context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Derived>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl ConvertFrom<Expr<Line>> for Circle

Source§

fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Line>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl ConvertFrom<Expr<Number>> for Circle

Source§

fn convert_from(value: Expr<Number>, context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Number>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl ConvertFrom<Expr<Point>> for Circle

Source§

fn convert_from(value: Expr<Point>, context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Point>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl ConvertFrom<Expr<PointCollection>> for Circle

Source§

fn convert_from( value: Expr<PointCollection>, context: &CompileContext, ) -> Expr<Self>

Convert a value to Self. Read more
Source§

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

Source§

fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>

Convert a value to Self. Read more
Source§

fn can_convert_from(_value: &Expr<Unknown>) -> bool

Check if conversion from a value to Self can be made.
Source§

impl Debug for Circle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Circle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Displayed for Circle

Source§

type Node = CircleNode

The display node type to use for displaying Self
Source§

impl Dummy for Circle

Source§

fn dummy() -> Self

Create a dummy value pretending to be a valid one.
Source§

fn is_dummy(&self) -> bool

Check if this is a dummy value.
Source§

impl FromExpr<Circle> for CircleNode

Source§

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

Source§

fn load(expr: &Unrolled<UnrolledCircle>, math: &mut Expand) -> Self

Load the unroll expression
Source§

impl GetData for Circle

Source§

fn get_data(&self) -> &Self

Get the underlying data with no indirections.
Source§

impl GetMathType for Circle

Source§

impl GetValueType for Circle

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert for T

Source§

fn convert<U>(self, context: &CompileContext) -> Expr<U>
where U: ConvertFrom<T>,

Convert self into a specific type. Read more
Source§

fn can_convert<U>(&self) -> bool
where U: ConvertFrom<T>,

Check if self can be converted into a specific type. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.