Enum geo_aid::script::SimpleUnit
source · pub enum SimpleUnit {
Distance,
Angle,
Scalar,
}
Expand description
Defines a simple unit.
Variants§
Trait Implementations§
source§impl Clone for SimpleUnit
impl Clone for SimpleUnit
source§fn clone(&self) -> SimpleUnit
fn clone(&self) -> SimpleUnit
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 SimpleUnit
impl Debug for SimpleUnit
source§impl Div<SimpleUnit> for ComplexUnit
impl Div<SimpleUnit> for ComplexUnit
§type Output = ComplexUnit
type Output = ComplexUnit
The resulting type after applying the
/
operator.source§impl Mul<SimpleUnit> for ComplexUnit
impl Mul<SimpleUnit> for ComplexUnit
§type Output = ComplexUnit
type Output = ComplexUnit
The resulting type after applying the
*
operator.source§impl Mul for SimpleUnit
impl Mul for SimpleUnit
source§impl PartialEq for SimpleUnit
impl PartialEq for SimpleUnit
source§fn eq(&self, other: &SimpleUnit) -> bool
fn eq(&self, other: &SimpleUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SimpleUnit
impl Eq for SimpleUnit
impl StructuralEq for SimpleUnit
impl StructuralPartialEq for SimpleUnit
Auto Trait Implementations§
impl RefUnwindSafe for SimpleUnit
impl Send for SimpleUnit
impl Sync for SimpleUnit
impl Unpin for SimpleUnit
impl UnwindSafe for SimpleUnit
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> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
fn clone_with_node(&mut self) -> T
fn clone_without_node(&self) -> T
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