pub struct OperationTemplateBuildFnTable<'a, L: ?Sized, P = <L as TemplateLanguage<'a>>::Property> {
pub operation_methods: TemplateBuildMethodFnMap<'a, L, Operation, P>,
pub operation_list_methods: TemplateBuildMethodFnMap<'a, L, Vec<Operation>, P>,
pub operation_id_methods: TemplateBuildMethodFnMap<'a, L, OperationId, P>,
}Expand description
Symbol table for the operation template property types.
Fields§
§operation_methods: TemplateBuildMethodFnMap<'a, L, Operation, P>§operation_list_methods: TemplateBuildMethodFnMap<'a, L, Vec<Operation>, P>§operation_id_methods: TemplateBuildMethodFnMap<'a, L, OperationId, P>Implementations§
Source§impl<L: ?Sized, P> OperationTemplateBuildFnTable<'_, L, P>
impl<L: ?Sized, P> OperationTemplateBuildFnTable<'_, L, P>
Source§impl<'a, L> OperationTemplateBuildFnTable<'a, L, L::Property>where
L: TemplateLanguage<'a> + OperationTemplateEnvironment + ?Sized,
L::Property: OperationTemplatePropertyVar<'a>,
impl<'a, L> OperationTemplateBuildFnTable<'a, L, L::Property>where
L: TemplateLanguage<'a> + OperationTemplateEnvironment + ?Sized,
L::Property: OperationTemplatePropertyVar<'a>,
Sourcepub fn build_method(
&self,
language: &L,
diagnostics: &mut TemplateDiagnostics,
build_ctx: &BuildContext<'_, L::Property>,
property: OperationTemplatePropertyKind<'a>,
function: &FunctionCallNode<'_>,
) -> TemplateParseResult<L::Property>
pub fn build_method( &self, language: &L, diagnostics: &mut TemplateDiagnostics, build_ctx: &BuildContext<'_, L::Property>, property: OperationTemplatePropertyKind<'a>, function: &FunctionCallNode<'_>, ) -> TemplateParseResult<L::Property>
Applies the method call node function to the given property by using
this symbol table.
Auto Trait Implementations§
impl<'a, L, P> Freeze for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
impl<'a, L, P> RefUnwindSafe for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
impl<'a, L, P> Send for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
impl<'a, L, P> Sync for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
impl<'a, L, P> Unpin for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
impl<'a, L, P> UnwindSafe for OperationTemplateBuildFnTable<'a, L, P>where
L: ?Sized,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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