pub struct TriviaPiece {
pub kind: TriviaKind,
pub span: Span,
}Expand description
A piece of trivia attached to a token.
Fields§
§kind: TriviaKind§span: SpanTrait Implementations§
Source§impl Clone for TriviaPiece
impl Clone for TriviaPiece
Source§fn clone(&self) -> TriviaPiece
fn clone(&self) -> TriviaPiece
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriviaPiece
impl Debug for TriviaPiece
Source§impl PartialEq for TriviaPiece
impl PartialEq for TriviaPiece
Source§fn eq(&self, other: &TriviaPiece) -> bool
fn eq(&self, other: &TriviaPiece) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TriviaPiece
impl Eq for TriviaPiece
impl StructuralPartialEq for TriviaPiece
Auto Trait Implementations§
impl Freeze for TriviaPiece
impl RefUnwindSafe for TriviaPiece
impl Send for TriviaPiece
impl Sync for TriviaPiece
impl Unpin for TriviaPiece
impl UnsafeUnpin for TriviaPiece
impl UnwindSafe for TriviaPiece
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