pub struct Scalar {
pub unit: Option<ComplexUnit>,
pub data: ScalarData,
}
Fields§
§unit: Option<ComplexUnit>
§data: ScalarData
Implementations§
Trait Implementations§
source§impl CloneWithNode for Scalar
impl CloneWithNode for Scalar
fn clone_with_node(&mut self) -> Self
fn clone_without_node(&self) -> Self
source§impl ConvertFrom<AnyExpr> for Scalar
impl ConvertFrom<AnyExpr> for Scalar
source§fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
fn convert_from(value: AnyExpr, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(value: &AnyExpr) -> bool
source§impl ConvertFrom<Expr<Bundle>> for Scalar
impl ConvertFrom<Expr<Bundle>> for Scalar
source§fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Bundle>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Bundle>) -> bool
source§impl ConvertFrom<Expr<Circle>> for Scalar
impl ConvertFrom<Expr<Circle>> for Scalar
source§fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Circle>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Circle>) -> bool
source§impl ConvertFrom<Expr<Line>> for Scalar
impl ConvertFrom<Expr<Line>> for Scalar
source§fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Line>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Line>) -> bool
source§impl ConvertFrom<Expr<Point>> for Scalar
impl ConvertFrom<Expr<Point>> for Scalar
source§fn convert_from(value: Expr<Point>, context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Point>, context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Point>) -> bool
source§impl ConvertFrom<Expr<PointCollection>> for Scalar
impl ConvertFrom<Expr<PointCollection>> for Scalar
source§fn convert_from(
value: Expr<PointCollection>,
context: &CompileContext,
) -> Expr<Self>
fn convert_from( value: Expr<PointCollection>, context: &CompileContext, ) -> Expr<Self>
Errors Read more
fn can_convert_from(value: &Expr<PointCollection>) -> bool
source§impl ConvertFrom<Expr<Scalar>> for Scalar
impl ConvertFrom<Expr<Scalar>> for Scalar
source§fn convert_from(value: Expr<Scalar>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Scalar>, _context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Scalar>) -> bool
source§impl ConvertFrom<Expr<Unknown>> for Scalar
impl ConvertFrom<Expr<Unknown>> for Scalar
source§fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
fn convert_from(value: Expr<Unknown>, _context: &CompileContext) -> Expr<Self>
Errors Read more
fn can_convert_from(_value: &Expr<Unknown>) -> bool
source§impl FromExpr<Scalar> for ScalarNode
impl FromExpr<Scalar> for ScalarNode
fn from_expr( expr: &Expr<Scalar>, props: Properties, context: &CompileContext, ) -> Self
source§impl FromUnrolled<Scalar> for ExprKind
impl FromUnrolled<Scalar> for ExprKind
source§impl GetMathType for Scalar
impl GetMathType for Scalar
fn get_math_type() -> ExprType
source§impl GetValueType for Scalar
impl GetValueType for Scalar
fn get_value_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Scalar
impl !RefUnwindSafe for Scalar
impl !Send for Scalar
impl !Sync for Scalar
impl Unpin for Scalar
impl !UnwindSafe for Scalar
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