pub enum BuiltinValueHelper {
Integer(Integer),
Scalar(Scalar),
Length(Scalar),
Area(Scalar),
Volume(Scalar),
Density(Scalar),
Angle(Scalar),
Weight(Scalar),
String(String),
Bool(bool),
Color(Color),
}
Expand description
This enum is used to declare parameter list for builtin symbols conveniently.
It is used in the parameter!
and argument!
macros to be able
to declare parameters and arguments in µcad like way, for example: a: Scalar = 4.0
.
Variants§
Integer(Integer)
Integer type.
Scalar(Scalar)
Scalar type.
Length(Scalar)
Length type.
Area(Scalar)
Area type
Volume(Scalar)
Volume type
Density(Scalar)
Density type
Angle(Scalar)
Angle type
Weight(Scalar)
Weight type
String(String)
String type.
Bool(bool)
Bool type
Color(Color)
Color type
Trait Implementations§
Source§impl From<BuiltinValueHelper> for Value
impl From<BuiltinValueHelper> for Value
Source§fn from(value: BuiltinValueHelper) -> Self
fn from(value: BuiltinValueHelper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuiltinValueHelper
impl RefUnwindSafe for BuiltinValueHelper
impl Send for BuiltinValueHelper
impl Sync for BuiltinValueHelper
impl Unpin for BuiltinValueHelper
impl UnwindSafe for BuiltinValueHelper
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more