pub struct WrappedToken {
pub token: Token,
pub comment: Comment,
pub span: Span,
}
Fields§
§token: Token
§comment: Comment
§span: Span
Implementations§
source§impl WrappedToken
impl WrappedToken
Trait Implementations§
source§impl Clone for WrappedToken
impl Clone for WrappedToken
source§fn clone(&self) -> WrappedToken
fn clone(&self) -> WrappedToken
Returns a copy of the value. Read more
1.6.0 · 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 WrappedToken
impl Debug for WrappedToken
source§impl Display for WrappedToken
impl Display for WrappedToken
source§impl PartialEq for WrappedToken
impl PartialEq for WrappedToken
impl StructuralPartialEq for WrappedToken
Auto Trait Implementations§
impl Freeze for WrappedToken
impl RefUnwindSafe for WrappedToken
impl Send for WrappedToken
impl Sync for WrappedToken
impl Unpin for WrappedToken
impl UnwindSafe for WrappedToken
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more