pub struct TemplateWithWhens<O: SubstParseContext> {
pub elements: Vec<TemplateElement<O>>,
}Fields§
§elements: Vec<TemplateElement<O>>Implementations§
Source§impl<O: SubstParseContext> TemplateWithWhens<O>
impl<O: SubstParseContext> TemplateWithWhens<O>
fn parse_special<S: SpecialParseContext>( input: ParseStream<'_>, special: &mut S, ) -> Result<Self>
Trait Implementations§
Source§impl<O: Debug + SubstParseContext> Debug for TemplateWithWhens<O>
impl<O: Debug + SubstParseContext> Debug for TemplateWithWhens<O>
Auto Trait Implementations§
impl<O> Freeze for TemplateWithWhens<O>
impl<O> RefUnwindSafe for TemplateWithWhens<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 TemplateWithWhens<O>
impl<O> !Sync for TemplateWithWhens<O>
impl<O> Unpin for TemplateWithWhens<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 TemplateWithWhens<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