pub enum AnyExprNode {
Point(HierarchyNode<<Point as Displayed>::Node>),
Line(HierarchyNode<<Line as Displayed>::Node>),
Circle(HierarchyNode<<Circle as Displayed>::Node>),
Scalar(HierarchyNode<<Scalar as Displayed>::Node>),
PointCollection(HierarchyNode<<PointCollection as Displayed>::Node>),
Bundle(HierarchyNode<<Bundle as Displayed>::Node>),
Unknown(HierarchyNode<<Unknown as Displayed>::Node>),
}Variants§
Point(HierarchyNode<<Point as Displayed>::Node>)
Line(HierarchyNode<<Line as Displayed>::Node>)
Circle(HierarchyNode<<Circle as Displayed>::Node>)
Scalar(HierarchyNode<<Scalar as Displayed>::Node>)
PointCollection(HierarchyNode<<PointCollection as Displayed>::Node>)
Bundle(HierarchyNode<<Bundle as Displayed>::Node>)
Unknown(HierarchyNode<<Unknown as Displayed>::Node>)
Implementations§
source§impl AnyExprNode
impl AnyExprNode
pub fn to_dyn(self) -> Box<dyn Node>
sourcepub fn to_point(self) -> HierarchyNode<<Point as Displayed>::Node>
pub fn to_point(self) -> HierarchyNode<<Point as Displayed>::Node>
§Panics
If the node is not a point node.
sourcepub fn to_line(self) -> HierarchyNode<<Line as Displayed>::Node>
pub fn to_line(self) -> HierarchyNode<<Line as Displayed>::Node>
§Panics
If the node is not a line node.
sourcepub fn to_circle(self) -> HierarchyNode<<Circle as Displayed>::Node>
pub fn to_circle(self) -> HierarchyNode<<Circle as Displayed>::Node>
§Panics
If the node is not a circle node.
sourcepub fn to_scalar(self) -> HierarchyNode<<Scalar as Displayed>::Node>
pub fn to_scalar(self) -> HierarchyNode<<Scalar as Displayed>::Node>
§Panics
If the node is not a scalar node.
sourcepub fn to_point_collection(
self,
) -> HierarchyNode<<PointCollection as Displayed>::Node>
pub fn to_point_collection( self, ) -> HierarchyNode<<PointCollection as Displayed>::Node>
§Panics
If the node is not a point collection node.
sourcepub fn to_bundle(self) -> HierarchyNode<<Bundle as Displayed>::Node>
pub fn to_bundle(self) -> HierarchyNode<<Bundle as Displayed>::Node>
§Panics
If the node is not a bundle node.
sourcepub fn to_unknown(self) -> HierarchyNode<<Unknown as Displayed>::Node>
pub fn to_unknown(self) -> HierarchyNode<<Unknown as Displayed>::Node>
§Panics
If the node is not an unknown node.
Trait Implementations§
source§impl Debug for AnyExprNode
impl Debug for AnyExprNode
source§impl From<HierarchyNode<<Bundle as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Bundle as Displayed>::Node>> for AnyExprNode
source§impl From<HierarchyNode<<Circle as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Circle as Displayed>::Node>> for AnyExprNode
source§impl From<HierarchyNode<<Line as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Line as Displayed>::Node>> for AnyExprNode
source§impl From<HierarchyNode<<Point as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Point as Displayed>::Node>> for AnyExprNode
source§impl From<HierarchyNode<<PointCollection as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<PointCollection as Displayed>::Node>> for AnyExprNode
source§fn from(value: HierarchyNode<<PointCollection as Displayed>::Node>) -> Self
fn from(value: HierarchyNode<<PointCollection as Displayed>::Node>) -> Self
Converts to this type from the input type.
source§impl From<HierarchyNode<<Scalar as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Scalar as Displayed>::Node>> for AnyExprNode
source§impl From<HierarchyNode<<Unknown as Displayed>::Node>> for AnyExprNode
impl From<HierarchyNode<<Unknown as Displayed>::Node>> for AnyExprNode
Auto Trait Implementations§
impl Freeze for AnyExprNode
impl !RefUnwindSafe for AnyExprNode
impl !Send for AnyExprNode
impl !Sync for AnyExprNode
impl Unpin for AnyExprNode
impl !UnwindSafe for AnyExprNode
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