Enum g_code::emit::Value [−][src]
Expand description
All the possible variations of a field’s value. Some flavors of g-code also allow for strings.
Any strings here are expected to have escaped characters, see https://www.reprap.org/wiki/G-code#Quoted_strings
Variants
Rational(Decimal)
Tuple Fields of Rational
0: Decimal
Float(f64)
Tuple Fields of Float
0: f64
Integer(usize)
Tuple Fields of Integer
0: usize
Implementations
Interpret the value as an f64
Returns Option::None for Value::String or a Value::Rational that can’t be converted.
Returns an owned representation of the Value valid for the 'static
lifetime.
This will allocate a string for a Value::String.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more