#[repr(C)]pub struct Word {
pub letter: char,
pub value: f32,
pub span: Span,
}Expand description
Fields§
§letter: charThe letter part of this Word.
value: f32The value part.
span: SpanWhere the Word lies in the original string.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Word
impl<'de> Deserialize<'de> for Word
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A: Buffer<Word>> Extend<Word> for GCode<A>
impl<A: Buffer<Word>> Extend<Word> for GCode<A>
Source§fn extend<I: IntoIterator<Item = Word>>(&mut self, words: I)
fn extend<I: IntoIterator<Item = Word>>(&mut self, words: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl Copy for Word
impl StructuralPartialEq for Word
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnsafeUnpin for Word
impl UnwindSafe for Word
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