pub struct TemplateDefinition {
pub imported_definitions_d_escaped: TokenStream,
pub doc_attrs: DocAttributes,
export: Option<MacroExport>,
pub templ_name: SyntheticMacroName<SyntheticMacroTemplate>,
options: UnprocessedOptions,
pub template: TokenStream,
}Fields§
§imported_definitions_d_escaped: TokenStream§doc_attrs: DocAttributes§export: Option<MacroExport>§templ_name: SyntheticMacroName<SyntheticMacroTemplate>§options: UnprocessedOptions§template: TokenStreamImplementations§
Source§impl TemplateDefinition
impl TemplateDefinition
Sourcepub fn parse_from_via_modules(
prefix_d_escaped: ParseStream<'_>,
main: ParseStream<'_>,
) -> Result<Self>
pub fn parse_from_via_modules( prefix_d_escaped: ParseStream<'_>, main: ParseStream<'_>, ) -> Result<Self>
Expands the docs, and parses the rest of the template
Trait Implementations§
Source§impl Clone for TemplateDefinition
impl Clone for TemplateDefinition
Source§fn clone(&self) -> TemplateDefinition
fn clone(&self) -> TemplateDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateDefinition
impl Debug for TemplateDefinition
Source§impl Parse for TemplateDefinition
impl Parse for TemplateDefinition
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for TemplateDefinition
impl RefUnwindSafe for TemplateDefinition
impl !Send for TemplateDefinition
impl !Sync for TemplateDefinition
impl Unpin for TemplateDefinition
impl UnwindSafe for TemplateDefinition
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