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>
impl<'input> Eq for InlineComment<'input>
impl<'input> StructuralPartialEq for InlineComment<'input>
Auto Trait Implementations§
impl<'input> Freeze for InlineComment<'input>
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