pub enum OrigDollarHandled {
NotFound,
Found(Span),
}Expand description
Proof token that deescape_orig_dollar was called
Demanded by Subst::parse_after_dollar.
Do not construct this yourself.
Only deescape_orig_dollar is allowed to do that.
Variants§
NotFound
We didn’t find any orig_dollar
Found(Span)
We did find orig_dollar; if we now see another $
things get even stranger.
Implementations§
Source§impl OrigDollarHandled
impl OrigDollarHandled
pub fn discriminant(&self) -> OrigDollarHandledDiscriminants
Trait Implementations§
Source§impl Debug for OrigDollarHandled
impl Debug for OrigDollarHandled
Source§impl<'_enum> From<&'_enum OrigDollarHandled> for OrigDollarHandledDiscriminants
impl<'_enum> From<&'_enum OrigDollarHandled> for OrigDollarHandledDiscriminants
Source§fn from(val: &'_enum OrigDollarHandled) -> OrigDollarHandledDiscriminants
fn from(val: &'_enum OrigDollarHandled) -> OrigDollarHandledDiscriminants
Converts to this type from the input type.
Source§impl From<OrigDollarHandled> for OrigDollarHandledDiscriminants
impl From<OrigDollarHandled> for OrigDollarHandledDiscriminants
Source§fn from(val: OrigDollarHandled) -> OrigDollarHandledDiscriminants
fn from(val: OrigDollarHandled) -> OrigDollarHandledDiscriminants
Converts to this type from the input type.
Source§impl IntoDiscriminant for OrigDollarHandled
impl IntoDiscriminant for OrigDollarHandled
Source§type Discriminant = OrigDollarHandledDiscriminants
type Discriminant = OrigDollarHandledDiscriminants
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Auto Trait Implementations§
impl Freeze for OrigDollarHandled
impl RefUnwindSafe for OrigDollarHandled
impl !Send for OrigDollarHandled
impl !Sync for OrigDollarHandled
impl Unpin for OrigDollarHandled
impl UnwindSafe for OrigDollarHandled
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