pub struct DefaultFunctionGenerator { /* private fields */ }Implementations§
Source§impl DefaultFunctionGenerator
impl DefaultFunctionGenerator
pub fn new(context: GeneratorContext) -> Self
pub fn context(&self) -> &GeneratorContext
Sourcepub fn output_functions_via(&self, generator: &dyn FunctionGenerator)
pub fn output_functions_via(&self, generator: &dyn FunctionGenerator)
Same iteration/filtering logic as output_functions, but dispatches each
function through generator rather than self. Rust has no virtual dispatch on
concrete types, so a dialect wrapper (e.g. SqlServerFunctionGenerator) that
overrides output_function but delegates output_functions straight to this
struct would otherwise never see its own override invoked - callers that need
their override honored should pass self (as a &dyn FunctionGenerator) here
instead of calling output_functions directly.
Trait Implementations§
Source§impl FunctionGenerator for DefaultFunctionGenerator
impl FunctionGenerator for DefaultFunctionGenerator
fn output_functions(&self)
fn output_function( &self, writer: &mut SqlWriter, statement_separator: &str, function: &Function, )
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultFunctionGenerator
impl !Send for DefaultFunctionGenerator
impl !Sync for DefaultFunctionGenerator
impl !UnwindSafe for DefaultFunctionGenerator
impl Freeze for DefaultFunctionGenerator
impl Unpin for DefaultFunctionGenerator
impl UnsafeUnpin for DefaultFunctionGenerator
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