struct Pasted {
whole: String,
span: Span,
atoms: Vec<AtomForReport>,
}Expand description
Core of the results from mk_ident
Fields§
§whole: StringString if we’re to make an identifier, or for more pasting
span: SpanSpan if we’re to make an identifier
atoms: Vec<AtomForReport>What to consider complaining about if we can’t make an identifier
Trait Implementations§
Source§impl IdentFrag for Pasted
impl IdentFrag for Pasted
type BadIdent = Error
Source§fn note_atoms(&self, atoms: &mut Vec<AtomForReport>)
fn note_atoms(&self, atoms: &mut Vec<AtomForReport>)
Source§fn frag_to_tokens(&self, out: &mut TokenStream) -> Result<()>
fn frag_to_tokens(&self, out: &mut TokenStream) -> Result<()>
(Try to) convert to tokens (ie, real
Ident) Read moreAuto Trait Implementations§
impl Freeze for Pasted
impl RefUnwindSafe for Pasted
impl !Send for Pasted
impl !Sync for Pasted
impl Unpin for Pasted
impl UnwindSafe for Pasted
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> 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