Enum weedle::types::FloatingPointType
source · [−]pub enum FloatingPointType {
Float(FloatType),
Double(DoubleType),
}Expand description
Parses unrestricted? float|double
Variants
Float(FloatType)
Double(DoubleType)
Trait Implementations
sourceimpl Clone for FloatingPointType
impl Clone for FloatingPointType
sourcefn clone(&self) -> FloatingPointType
fn clone(&self) -> FloatingPointType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FloatingPointType
impl Debug for FloatingPointType
sourceimpl From<DoubleType> for FloatingPointType
impl From<DoubleType> for FloatingPointType
sourcefn from(x: DoubleType) -> Self
fn from(x: DoubleType) -> Self
Converts to this type from the input type.
sourceimpl From<FloatType> for FloatingPointType
impl From<FloatType> for FloatingPointType
sourceimpl Hash for FloatingPointType
impl Hash for FloatingPointType
sourceimpl Ord for FloatingPointType
impl Ord for FloatingPointType
sourcefn cmp(&self, other: &FloatingPointType) -> Ordering
fn cmp(&self, other: &FloatingPointType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> Parse<'a> for FloatingPointType
impl<'a> Parse<'a> for FloatingPointType
sourceimpl PartialEq<FloatingPointType> for FloatingPointType
impl PartialEq<FloatingPointType> for FloatingPointType
sourcefn eq(&self, other: &FloatingPointType) -> bool
fn eq(&self, other: &FloatingPointType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FloatingPointType) -> bool
fn ne(&self, other: &FloatingPointType) -> bool
This method tests for !=.
sourceimpl PartialOrd<FloatingPointType> for FloatingPointType
impl PartialOrd<FloatingPointType> for FloatingPointType
sourcefn partial_cmp(&self, other: &FloatingPointType) -> Option<Ordering>
fn partial_cmp(&self, other: &FloatingPointType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for FloatingPointType
impl Eq for FloatingPointType
impl StructuralEq for FloatingPointType
impl StructuralPartialEq for FloatingPointType
Auto Trait Implementations
impl RefUnwindSafe for FloatingPointType
impl Send for FloatingPointType
impl Sync for FloatingPointType
impl Unpin for FloatingPointType
impl UnwindSafe for FloatingPointType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more