Enum g_code::emit::Value [−][src]
Expand description
All the possible variations of a field’s value. Some flavors of GCode 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)Float(f64)Integer(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