pub struct Pretty {
pub config: PrettyConfig,
}
Expand description
(Public only for tests)
Fields§
§config: PrettyConfig
Implementations§
Source§impl Pretty
impl Pretty
pub(crate) fn doc_display<'a, T: AstDisplay>( &self, v: &T, _debug: &str, ) -> RcDoc<'a, ()>
fn doc_display_pass<'a, T: AstDisplay>(&self, v: &T) -> RcDoc<'a, ()>
pub(crate) fn doc_create_source<'a, T: AstInfo>( &'a self, v: &'a CreateSourceStatement<T>, ) -> RcDoc<'a>
fn doc_format_specifier<T: AstInfo>(&self, v: &FormatSpecifier<T>) -> RcDoc<'_>
fn doc_external_references<'a>(&'a self, v: &'a ExternalReferences) -> RcDoc<'a>
pub(crate) fn doc_copy<'a, T: AstInfo>( &'a self, v: &'a CopyStatement<T>, ) -> RcDoc<'a>
pub(crate) fn doc_subscribe<'a, T: AstInfo>( &'a self, v: &'a SubscribeStatement<T>, ) -> RcDoc<'a>
fn doc_as_of<'a, T: AstInfo>(&'a self, v: &'a AsOf<T>) -> RcDoc<'a>
pub(crate) fn doc_create_view<'a, T: AstInfo>( &'a self, v: &'a CreateViewStatement<T>, ) -> RcDoc<'a>
pub(crate) fn doc_create_materialized_view<'a, T: AstInfo>( &'a self, v: &'a CreateMaterializedViewStatement<T>, ) -> RcDoc<'a>
fn doc_view_definition<'a, T: AstInfo>( &'a self, v: &'a ViewDefinition<T>, ) -> RcDoc<'a>
pub(crate) fn doc_insert<'a, T: AstInfo>( &'a self, v: &'a InsertStatement<T>, ) -> RcDoc<'a>
pub(crate) fn doc_select_statement<'a, T: AstInfo>( &'a self, v: &'a SelectStatement<T>, ) -> RcDoc<'a>
fn doc_order_by<'a, T: AstInfo>(&'a self, v: &'a [OrderByExpr<T>]) -> RcDoc<'a>
fn doc_order_by_expr<'a, T: AstInfo>( &'a self, v: &'a OrderByExpr<T>, ) -> RcDoc<'a>
fn doc_query<'a, T: AstInfo>(&'a self, v: &'a Query<T>) -> RcDoc<'a>
fn doc_cte<'a, T: AstInfo>(&'a self, v: &'a Cte<T>) -> RcDoc<'a>
fn doc_mutually_recursive<'a, T: AstInfo>( &'a self, v: &'a CteMutRec<T>, ) -> RcDoc<'a>
fn doc_set_expr<'a, T: AstInfo>(&'a self, v: &'a SetExpr<T>) -> RcDoc<'a>
fn doc_values<'a, T: AstInfo>(&'a self, v: &'a Values<T>) -> RcDoc<'a>
fn doc_table_with_joins<'a, T: AstInfo>( &'a self, v: &'a TableWithJoins<T>, ) -> RcDoc<'a>
fn doc_join<'a, T: AstInfo>(&'a self, v: &'a Join<T>) -> RcDoc<'a>
fn doc_table_factor<'a, T: AstInfo>( &'a self, v: &'a TableFactor<T>, ) -> RcDoc<'a>
fn doc_distinct<'a, T: AstInfo>(&'a self, v: &'a Distinct<T>) -> RcDoc<'a>
fn doc_select<'a, T: AstInfo>(&'a self, v: &'a Select<T>) -> RcDoc<'a>
fn doc_select_item<'a, T: AstInfo>(&'a self, v: &'a SelectItem<T>) -> RcDoc<'a>
pub fn doc_expr<'a, T: AstInfo>(&'a self, v: &'a Expr<T>) -> RcDoc<'a>
fn doc_function<'a, T: AstInfo>(&'a self, v: &'a Function<T>) -> RcDoc<'a>
Auto Trait Implementations§
impl Freeze for Pretty
impl RefUnwindSafe for Pretty
impl Send for Pretty
impl Sync for Pretty
impl Unpin for Pretty
impl UnwindSafe for Pretty
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.