pub struct RepeatedTemplate<O: SubstParseContext> {
pub span: Span,
pub template: Template<O>,
pub whens: Vec<Box<Subst<BooleanContext>>>,
pub over: RepeatOver,
}Fields§
§span: Span§template: Template<O>§whens: Vec<Box<Subst<BooleanContext>>>§over: RepeatOverImplementations§
Source§impl<O: ExpansionOutput> RepeatedTemplate<O>
impl<O: ExpansionOutput> RepeatedTemplate<O>
Sourcefn expand_inner(&self, ctx: &Context<'_>, out: &mut O)
fn expand_inner(&self, ctx: &Context<'_>, out: &mut O)
private, does the condition
Source§impl<O: SubstParseContext> RepeatedTemplate<O>
impl<O: SubstParseContext> RepeatedTemplate<O>
fn parse_in_parens(input: ParseStream<'_>) -> Result<TemplateElement<O>>
fn parse_for(input: ParseStream<'_>) -> Result<RepeatedTemplate<O>>
fn parse( input: ParseStream<'_>, span: DelimSpan, over: Option<RepeatOver>, ) -> Result<RepeatedTemplate<O>, Error>
Trait Implementations§
Source§impl<O: Debug + SubstParseContext> Debug for RepeatedTemplate<O>
impl<O: Debug + SubstParseContext> Debug for RepeatedTemplate<O>
Source§impl<O> ExpandInfallible<O> for RepeatedTemplate<O>
impl<O> ExpandInfallible<O> for RepeatedTemplate<O>
fn expand<'c>(&self, ctx: GeneralContext<'c>, out: &mut O)
Source§impl<O: SubstParseContext> FindRecogMetas for RepeatedTemplate<O>
impl<O: SubstParseContext> FindRecogMetas for RepeatedTemplate<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 RepeatedTemplate<O>
impl<O> RefUnwindSafe for RepeatedTemplate<O>where
<O as SubstParseContext>::NotInConcat: RefUnwindSafe,
<O as SubstParseContext>::NotInPaste: RefUnwindSafe,
<O as SubstParseContext>::NotInBool: RefUnwindSafe,
<O as SubstParseContext>::BoolOnly: RefUnwindSafe,
<O as SubstParseContext>::DbgContent: RefUnwindSafe,
impl<O> !Send for RepeatedTemplate<O>
impl<O> !Sync for RepeatedTemplate<O>
impl<O> Unpin for RepeatedTemplate<O>where
<O as SubstParseContext>::NotInConcat: Unpin,
<O as SubstParseContext>::NotInPaste: Unpin,
<O as SubstParseContext>::NotInBool: Unpin,
<O as SubstParseContext>::BoolOnly: Unpin,
impl<O> UnwindSafe for RepeatedTemplate<O>where
<O as SubstParseContext>::NotInConcat: UnwindSafe,
<O as SubstParseContext>::NotInPaste: UnwindSafe,
<O as SubstParseContext>::NotInBool: 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