pub struct PointNode {
pub display: MaybeUnset<bool>,
pub label: MaybeUnset<SpannedMathString>,
pub display_label: MaybeUnset<bool>,
pub display_dot: MaybeUnset<bool>,
pub default_label: SpannedMathString,
pub expr: Expr<Point>,
}
Expand description
A node for points
Fields§
§display: MaybeUnset<bool>
Whether to display the node
label: MaybeUnset<SpannedMathString>
The point’s label
display_label: MaybeUnset<bool>
Whether to display the label
display_dot: MaybeUnset<bool>
Whether to display the point’s dot.
default_label: SpannedMathString
Default label to use if label
is empty.
expr: Expr<Point>
Defining expression
Trait Implementations§
Source§impl BuildAssociated<PointNode> for Associated
impl BuildAssociated<PointNode> for Associated
Source§fn build_associated(
self: Box<Self>,
_build: &mut Build,
associated: &mut HierarchyNode<PointNode>,
)
fn build_associated( self: Box<Self>, _build: &mut Build, associated: &mut HierarchyNode<PointNode>, )
Build the associated node.
Source§impl FromExpr<Point> for PointNode
impl FromExpr<Point> for PointNode
Source§fn from_expr(
expr: &Expr<Point>,
props: Properties,
context: &CompileContext,
) -> Self
fn from_expr( expr: &Expr<Point>, props: Properties, context: &CompileContext, ) -> Self
Build a node out of an unrolled expression.
Source§impl Node for PointNode
impl Node for PointNode
Source§fn set_display(&mut self, display: bool)
fn set_display(&mut self, display: bool)
Set the general display flag that decides whether this node and its children should be displayed.
Source§fn get_display(&self) -> bool
fn get_display(&self) -> bool
Get whether this node should be displayed.
Source§fn build_unboxed(self, compiler: &mut Build)where
Self: Sized,
fn build_unboxed(self, compiler: &mut Build)where
Self: Sized,
Build this node, with an unboxed
self
type.Auto Trait Implementations§
impl Freeze for PointNode
impl !RefUnwindSafe for PointNode
impl !Send for PointNode
impl !Sync for PointNode
impl Unpin for PointNode
impl !UnwindSafe for PointNode
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>,
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