pub struct SqlFormatter<'config> { /* private fields */ }Expand description
A formatter for SQL source files.
Implementations§
Source§impl<'config> SqlFormatter<'config>
impl<'config> SqlFormatter<'config>
Sourcepub fn new(config: &'config SqlLanguage) -> Self
pub fn new(config: &'config SqlLanguage) -> Self
Creates a new SqlFormatter with the given language configuration.
Sourcepub fn format(&self, _node: &RedNode<'_, SqlLanguage>) -> String
pub fn format(&self, _node: &RedNode<'_, SqlLanguage>) -> String
Formats a SQL source tree into a string.
Auto Trait Implementations§
impl<'config> Freeze for SqlFormatter<'config>
impl<'config> RefUnwindSafe for SqlFormatter<'config>
impl<'config> Send for SqlFormatter<'config>
impl<'config> Sync for SqlFormatter<'config>
impl<'config> Unpin for SqlFormatter<'config>
impl<'config> UnsafeUnpin for SqlFormatter<'config>
impl<'config> UnwindSafe for SqlFormatter<'config>
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