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 ==.impl Eq for PredefinedType
impl StructuralEq for PredefinedType
impl StructuralPartialEq for PredefinedType
Auto Trait Implementations§
impl RefUnwindSafe for PredefinedType
impl Send for PredefinedType
impl Sync for PredefinedType
impl Unpin for PredefinedType
impl UnwindSafe for PredefinedType
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