Struct sqruff_lib::templaters::raw::RawTemplater
source · pub struct RawTemplater;Trait Implementations§
source§impl Default for RawTemplater
impl Default for RawTemplater
source§fn default() -> RawTemplater
fn default() -> RawTemplater
Returns the “default value” for a type. Read more
source§impl Templater for RawTemplater
impl Templater for RawTemplater
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of the templater.
source§fn template_selection(&self) -> &str
fn template_selection(&self) -> &str
Template Selector
source§fn config_pairs(&self) -> (String, String)
fn config_pairs(&self) -> (String, String)
Returns info about the given templater for output by the cli.
source§fn sequence_files(
&self,
f_names: Vec<String>,
_: Option<&FluffConfig>,
_: Option<&OutputStreamFormatter>,
) -> Vec<String>
fn sequence_files( &self, f_names: Vec<String>, _: Option<&FluffConfig>, _: Option<&OutputStreamFormatter>, ) -> Vec<String>
Given files to be processed, return a valid processing sequence.
source§fn process(
&self,
in_str: &str,
f_name: &str,
_config: Option<&FluffConfig>,
_formatter: Option<&OutputStreamFormatter>,
) -> Result<TemplatedFile, SQLFluffUserError>
fn process( &self, in_str: &str, f_name: &str, _config: Option<&FluffConfig>, _formatter: Option<&OutputStreamFormatter>, ) -> Result<TemplatedFile, SQLFluffUserError>
Process a string and return a TemplatedFile.
Auto Trait Implementations§
impl Freeze for RawTemplater
impl RefUnwindSafe for RawTemplater
impl Send for RawTemplater
impl Sync for RawTemplater
impl Unpin for RawTemplater
impl UnwindSafe for RawTemplater
Blanket Implementations§
source§impl<T> AsAnyMut for Twhere
T: Any,
impl<T> AsAnyMut for Twhere
T: Any,
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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