pub struct Field<'a> {
pub letters: Cow<'a, str>,
pub value: Value<'a>,
}
Expand description
Fundamental unit of g-code: a descriptive letter followed by a value.
Field type supports owned and partially-borrowed representations using Cow.
Fields§
§letters: Cow<'a, str>
§value: Value<'a>
Implementations§
Trait Implementations§
source§impl<'input> From<&Field<'input>> for Field<'input>
impl<'input> From<&Field<'input>> for Field<'input>
source§fn from(field: &ParsedField<'input>) -> Self
fn from(field: &ParsedField<'input>) -> Self
Converts to this type from the input type.
impl<'a> StructuralPartialEq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)