Enum geo_aid::script::parser::PredefinedType
source · pub enum PredefinedType {
Point,
Line,
Scalar(Option<ComplexUnit>),
PointCollection(usize),
}Expand description
A builtin type.
Variants§
Point
A point
Line
A line
Scalar(Option<ComplexUnit>)
A scalar of a certain unit.
PointCollection(usize)
A point collection.
Implementations§
source§impl PredefinedType
impl PredefinedType
pub fn as_scalar(&self) -> Option<&Option<ComplexUnit>>
Trait Implementations§
source§impl Clone for PredefinedType
impl Clone for PredefinedType
source§fn clone(&self) -> PredefinedType
fn clone(&self) -> PredefinedType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PredefinedType
impl Debug for PredefinedType
source§impl PartialEq<PredefinedType> for PredefinedType
impl PartialEq<PredefinedType> for PredefinedType
source§fn eq(&self, other: &PredefinedType) -> bool
fn eq(&self, other: &PredefinedType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.