pub enum BuiltinTypeHelper {
Integer,
Scalar,
Length,
Area,
Volume,
Density,
Angle,
Weight,
String,
Bool,
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 type.
Scalar
A unitless scalar value.
Length
Length in mm.
Area
Area in mm².
Volume
Volume in mm³.
Density
Density in g/mm³
Angle
An angle in radians.
Weight
Weight of a specific volume of material.
String
String type.
Bool
Bool type.
Color
Color type.
Trait Implementations§
Source§impl From<BuiltinTypeHelper> for Type
impl From<BuiltinTypeHelper> for Type
Source§fn from(value: BuiltinTypeHelper) -> Self
fn from(value: BuiltinTypeHelper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuiltinTypeHelper
impl RefUnwindSafe for BuiltinTypeHelper
impl Send for BuiltinTypeHelper
impl Sync for BuiltinTypeHelper
impl Unpin for BuiltinTypeHelper
impl UnwindSafe for BuiltinTypeHelper
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