Struct g_code::parse::token::InlineComment
source · pub struct InlineComment<'input> { /* private fields */ }
Expand description
An opening parenthesis (
followed by ASCII characters and terminated
by a closing parenthesis )
.
A Newline is not allowed in an inline comment.
The parentheses are part of the inner representation.
Implementations§
source§impl<'input> InlineComment<'input>
impl<'input> InlineComment<'input>
pub fn iter_bytes(&'input self) -> impl Iterator<Item = &'input u8>
Trait Implementations§
source§impl<'input> Clone for InlineComment<'input>
impl<'input> Clone for InlineComment<'input>
source§fn clone(&self) -> InlineComment<'input>
fn clone(&self) -> InlineComment<'input>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'input> Debug for InlineComment<'input>
impl<'input> Debug for InlineComment<'input>
source§impl<'a, 'input: 'a> From<&'a InlineComment<'input>> for Token<'input>
impl<'a, 'input: 'a> From<&'a InlineComment<'input>> for Token<'input>
source§fn from(comment: &'a ParsedInlineComment<'input>) -> Self
fn from(comment: &'a ParsedInlineComment<'input>) -> Self
Converts to this type from the input type.
source§impl<'input> PartialEq for InlineComment<'input>
impl<'input> PartialEq for InlineComment<'input>
source§fn eq(&self, other: &InlineComment<'input>) -> bool
fn eq(&self, other: &InlineComment<'input>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'input> Eq for InlineComment<'input>
impl<'input> StructuralPartialEq for InlineComment<'input>
Auto Trait Implementations§
impl<'input> RefUnwindSafe for InlineComment<'input>
impl<'input> Send for InlineComment<'input>
impl<'input> Sync for InlineComment<'input>
impl<'input> Unpin for InlineComment<'input>
impl<'input> UnwindSafe for InlineComment<'input>
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