Enum geo_aid::script::unroll::AnyExprNode
source · 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 as_dyn(self) -> Box<dyn Node>
sourcepub fn as_point(self) -> HierarchyNode<<Point as Displayed>::Node>
pub fn as_point(self) -> HierarchyNode<<Point as Displayed>::Node>
Panics
If the node is not a point node.
sourcepub fn as_line(self) -> HierarchyNode<<Line as Displayed>::Node>
pub fn as_line(self) -> HierarchyNode<<Line as Displayed>::Node>
Panics
If the node is not a line node.
sourcepub fn as_circle(self) -> HierarchyNode<<Circle as Displayed>::Node>
pub fn as_circle(self) -> HierarchyNode<<Circle as Displayed>::Node>
Panics
If the node is not a circle node.
sourcepub fn as_scalar(self) -> HierarchyNode<<Scalar as Displayed>::Node>
pub fn as_scalar(self) -> HierarchyNode<<Scalar as Displayed>::Node>
Panics
If the node is not a scalar node.
sourcepub fn as_point_collection(
self
) -> HierarchyNode<<PointCollection as Displayed>::Node>
pub fn as_point_collection( self ) -> HierarchyNode<<PointCollection as Displayed>::Node>
Panics
If the node is not a point collection node.
sourcepub fn as_bundle(self) -> HierarchyNode<<Bundle as Displayed>::Node>
pub fn as_bundle(self) -> HierarchyNode<<Bundle as Displayed>::Node>
Panics
If the node is not a bundle node.
sourcepub fn as_unknown(self) -> HierarchyNode<<Unknown as Displayed>::Node>
pub fn as_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<<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.
Auto Trait Implementations§
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