pub struct QueryResultFormatter;Expand description
Formatter for query results
Implementations§
Source§impl QueryResultFormatter
impl QueryResultFormatter
Sourcepub fn format(result: &QueryResult, format: OutputFormat) -> String
pub fn format(result: &QueryResult, format: OutputFormat) -> String
Format a query result to a string
Sourcepub fn write<W: Write>(
result: &QueryResult,
format: OutputFormat,
writer: &mut W,
) -> Result<()>
pub fn write<W: Write>( result: &QueryResult, format: OutputFormat, writer: &mut W, ) -> Result<()>
Write formatted result to a writer
Auto Trait Implementations§
impl Freeze for QueryResultFormatter
impl RefUnwindSafe for QueryResultFormatter
impl Send for QueryResultFormatter
impl Sync for QueryResultFormatter
impl Unpin for QueryResultFormatter
impl UnwindSafe for QueryResultFormatter
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