pub struct RenderRenderers;Expand description
The renderers this crate implements, for alchemy’s Renderers: every
method is the constructor of the same name.
Trait Implementations§
Source§impl Clone for RenderRenderers
impl Clone for RenderRenderers
impl Copy for RenderRenderers
Source§impl Debug for RenderRenderers
impl Debug for RenderRenderers
Source§impl Default for RenderRenderers
impl Default for RenderRenderers
impl Eq for RenderRenderers
Source§impl PartialEq for RenderRenderers
impl PartialEq for RenderRenderers
Source§impl Renderers for RenderRenderers
impl Renderers for RenderRenderers
Source§fn json(
&self,
out: Box<dyn TextOut + Send>,
options: JsonOptions,
) -> Box<dyn Sink + Send>
fn json( &self, out: Box<dyn TextOut + Send>, options: JsonOptions, ) -> Box<dyn Sink + Send>
render’s
JsonRenderer::new: JsonEvents/1 written to out as
JSON text.Source§fn csv(
&self,
out: Box<dyn TextOut + Send>,
options: CsvOptions,
) -> Result<Box<dyn TableSink + Send>, Fail>
fn csv( &self, out: Box<dyn TextOut + Send>, options: CsvOptions, ) -> Result<Box<dyn TableSink + Send>, Fail>
render’s
CsvRenderer::new: TableRows/1 written to out as CSV,
or TARGET_VALUE_UNREPRESENTABLE for a delimiter no CSV reader
could take.Source§fn records_to_json(
&self,
sink: Box<dyn Sink + Send>,
) -> Box<dyn TableSink + Send>
fn records_to_json( &self, sink: Box<dyn Sink + Send>, ) -> Box<dyn TableSink + Send>
render’s
RecordsToJson::new: TableRows/1 as JsonEvents/1, an
array of objects keyed by label, handed to sink.Source§fn join<'a>(
&self,
out: Box<dyn TextOut + Send + 'a>,
separator: &str,
) -> Box<dyn JoinOut + Send + 'a>
fn join<'a>( &self, out: Box<dyn TextOut + Send + 'a>, separator: &str, ) -> Box<dyn JoinOut + Send + 'a>
render’s
Join::new: separator written to out between the
logical items written to the answer.Source§fn replace_text<'a>(
&self,
out: Box<dyn TextOut + Send + 'a>,
from: &str,
to: &str,
) -> Box<dyn TextOut + Send + 'a>
fn replace_text<'a>( &self, out: Box<dyn TextOut + Send + 'a>, from: &str, to: &str, ) -> Box<dyn TextOut + Send + 'a>
render’s
ReplaceText::new: the text written to the answer reaches
out with every occurrence of from replaced by to, however the
fragments cut it.Source§fn write_out(
&self,
writer: Box<dyn Write + Send>,
limits: &Limits,
metrics: Arc<Metrics>,
) -> Box<dyn TextOut + Send>
fn write_out( &self, writer: Box<dyn Write + Send>, limits: &Limits, metrics: Arc<Metrics>, ) -> Box<dyn TextOut + Send>
render’s
WriteOut::new(writer).with_limits(limits) .with_metrics(metrics): fragments coalesced to a byte budget and
written to writer, max_output_bytes enforced and output_bytes
counted in metrics.impl StructuralPartialEq for RenderRenderers
Auto Trait Implementations§
impl Freeze for RenderRenderers
impl RefUnwindSafe for RenderRenderers
impl Send for RenderRenderers
impl Sync for RenderRenderers
impl Unpin for RenderRenderers
impl UnsafeUnpin for RenderRenderers
impl UnwindSafe for RenderRenderers
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.