pub struct SubstMeta<O: SubstParseContext> {
pub desig: Desig,
pub as_: Option<SubstAs<O>>,
pub default: Option<(Argument<O>, O::NotInBool, Enabled)>,
}Fields§
§desig: Desig§as_: Option<SubstAs<O>>§default: Option<(Argument<O>, O::NotInBool, Enabled)>Implementations§
Source§impl<O: SubstParseContext> SubstMeta<O>
impl<O: SubstParseContext> SubstMeta<O>
fn span_whole(&self, scope_span: Span) -> Span
Source§impl<O: SubstParseContext> SubstMeta<O>
impl<O: SubstParseContext> SubstMeta<O>
Source§impl<O> SubstMeta<O>where
O: SubstParseContext,
impl<O> SubstMeta<O>where
O: SubstParseContext,
pub fn repeat_over(&self) -> Option<RepeatOver>
Source§impl<O> SubstMeta<O>where
O: SubstParseContext,
impl<O> SubstMeta<O>where
O: SubstParseContext,
Trait Implementations§
Source§impl<O: SubstParseContext> FindRecogMetas for SubstMeta<O>
impl<O: SubstParseContext> FindRecogMetas for SubstMeta<O>
Source§fn find_recog_metas(&self, acc: &mut Recognised)
fn find_recog_metas(&self, acc: &mut Recognised)
Search for
fmeta(..) etc. expansions Read moreAuto Trait Implementations§
impl<O> Freeze for SubstMeta<O>where
<O as SubstParseContext>::NotInBool: Freeze,
<O as SubstParseContext>::NotInPaste: Freeze,
<O as SubstParseContext>::NotInConcat: Freeze,
impl<O> RefUnwindSafe for SubstMeta<O>where
<O as SubstParseContext>::NotInBool: RefUnwindSafe,
<O as SubstParseContext>::NotInPaste: RefUnwindSafe,
<O as SubstParseContext>::NotInConcat: RefUnwindSafe,
<O as SubstParseContext>::BoolOnly: RefUnwindSafe,
<O as SubstParseContext>::DbgContent: RefUnwindSafe,
impl<O> !Send for SubstMeta<O>
impl<O> !Sync for SubstMeta<O>
impl<O> Unpin for SubstMeta<O>where
<O as SubstParseContext>::NotInBool: Unpin,
<O as SubstParseContext>::NotInPaste: Unpin,
<O as SubstParseContext>::NotInConcat: Unpin,
<O as SubstParseContext>::BoolOnly: Unpin,
impl<O> UnwindSafe for SubstMeta<O>where
<O as SubstParseContext>::NotInBool: UnwindSafe,
<O as SubstParseContext>::NotInPaste: UnwindSafe,
<O as SubstParseContext>::NotInConcat: UnwindSafe,
<O as SubstParseContext>::BoolOnly: UnwindSafe,
<O as SubstParseContext>::DbgContent: 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> 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