pub enum EntityKind {
FreePoint,
PointOnLine {
line: VarIndex,
},
PointOnCircle {
circle: VarIndex,
},
FreeReal,
DistanceUnit,
Bind(VarIndex),
}
Expand description
The kind of an entity.
Variants§
FreePoint
A free point with two degrees of freedom.
PointOnLine
A point bound to a specific line, only one relative degree of freedom.
PointOnCircle
A point bound to a specific circle, only one relative degree of freedom.
FreeReal
A free real with one degree of freedom
DistanceUnit
A special distance unit entity, effectively a free real.
Bind(VarIndex)
A bind. Never shows up past the compilation stage. It serves as a temporary value in-between compilation steps.
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
Source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl From<EntityKind> for EntityKind
impl From<EntityKind> for EntityKind
Source§fn from(value: EntityKind) -> Self
fn from(value: EntityKind) -> Self
Converts to this type from the input type.
Source§impl Reconstruct for EntityKind
impl Reconstruct for EntityKind
Source§fn reconstruct(self, arg0: &mut ReconstructCtx<'_>) -> Self
fn reconstruct(self, arg0: &mut ReconstructCtx<'_>) -> Self
Reconstruct the value.
Source§impl Reindex for EntityKind
impl Reindex for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnwindSafe for EntityKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
Source§fn clone_with_node(&mut self) -> T
fn clone_with_node(&mut self) -> T
Clone
self
and take its node.Source§fn clone_without_node(&self) -> T
fn clone_without_node(&self) -> T
Clone
self
without taking its node.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