pub struct SqlDocBuilder<'a> { /* private fields */ }Expand description
Builder structure for the SqlDoc
Implementations§
Source§impl<'a> SqlDocBuilder<'a>
impl<'a> SqlDocBuilder<'a>
Sourcepub const fn flatten_multiline(self) -> Self
pub const fn flatten_multiline(self) -> Self
Flattens the multiline comments without additional formatting
Sourcepub const fn flatten_multiline_with(self, suffix: &'a str) -> Self
pub const fn flatten_multiline_with(self, suffix: &'a str) -> Self
Flattens the multiline comments with String containing additional leading line formatting to add, such as punctuation.
Sourcepub const fn preserve_multiline(self) -> Self
pub const fn preserve_multiline(self) -> Self
Preserves multiline comments line structure
Sourcepub const fn collect_single_nearest(self) -> Self
pub const fn collect_single_nearest(self) -> Self
Collects only the comment on preceding lines
Sourcepub const fn collect_all_leading(self) -> Self
pub const fn collect_all_leading(self) -> Self
Collects All valid comments on preceding lines
Sourcepub const fn collect_all_single_one_multi(self) -> Self
pub const fn collect_all_single_one_multi(self) -> Self
Collects all single line comments and at most one multiline comment
Trait Implementations§
Source§impl<'a> Debug for SqlDocBuilder<'a>
impl<'a> Debug for SqlDocBuilder<'a>
Source§impl<'a> PartialEq for SqlDocBuilder<'a>
impl<'a> PartialEq for SqlDocBuilder<'a>
impl<'a> Eq for SqlDocBuilder<'a>
impl<'a> StructuralPartialEq for SqlDocBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for SqlDocBuilder<'a>
impl<'a> RefUnwindSafe for SqlDocBuilder<'a>
impl<'a> Send for SqlDocBuilder<'a>
impl<'a> Sync for SqlDocBuilder<'a>
impl<'a> Unpin for SqlDocBuilder<'a>
impl<'a> UnwindSafe for SqlDocBuilder<'a>
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