pub enum SubstAs<O: SubstParseContext> {
expr(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat), SubstAsSupported<Expr>),
ident(O::NotInBool),
items(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat), SubstAsSupported<Concatenated<Item>>),
path(O::NotInBool),
str(O::NotInBool),
token_stream(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat)),
ty(O::NotInBool),
}Variants§
expr(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat), SubstAsSupported<Expr>)
ident(O::NotInBool)
items(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat), SubstAsSupported<Concatenated<Item>>)
path(O::NotInBool)
str(O::NotInBool)
token_stream(O::NotInBool, (<O as SubstParseContext>::NotInPaste, <O as SubstParseContext>::NotInConcat))
ty(O::NotInBool)
Implementations§
Source§impl<O: SubstParseContext> SubstAs<O>
impl<O: SubstParseContext> SubstAs<O>
fn parse(input: ParseStream<'_>, nb: O::NotInBool) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for SubstAs<O>where
<O as SubstParseContext>::NotInBool: Freeze,
<O as SubstParseContext>::NotInPaste: Freeze,
<O as SubstParseContext>::NotInConcat: Freeze,
impl<O> RefUnwindSafe for SubstAs<O>where
<O as SubstParseContext>::NotInBool: RefUnwindSafe,
<O as SubstParseContext>::NotInPaste: RefUnwindSafe,
<O as SubstParseContext>::NotInConcat: RefUnwindSafe,
impl<O> Send for SubstAs<O>where
<O as SubstParseContext>::NotInBool: Send,
<O as SubstParseContext>::NotInPaste: Send,
<O as SubstParseContext>::NotInConcat: Send,
impl<O> Sync for SubstAs<O>where
<O as SubstParseContext>::NotInBool: Sync,
<O as SubstParseContext>::NotInPaste: Sync,
<O as SubstParseContext>::NotInConcat: Sync,
impl<O> Unpin for SubstAs<O>where
<O as SubstParseContext>::NotInBool: Unpin,
<O as SubstParseContext>::NotInPaste: Unpin,
<O as SubstParseContext>::NotInConcat: Unpin,
impl<O> UnwindSafe for SubstAs<O>where
<O as SubstParseContext>::NotInBool: UnwindSafe,
<O as SubstParseContext>::NotInPaste: UnwindSafe,
<O as SubstParseContext>::NotInConcat: UnwindSafe,
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§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