Skip to main content

RenderRenderers

Struct RenderRenderers 

Source
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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RenderRenderers

Source§

impl Debug for RenderRenderers

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RenderRenderers

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for RenderRenderers

Source§

impl PartialEq for RenderRenderers

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Renderers for RenderRenderers

Source§

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>

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>

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>

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>

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>

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.
Source§

impl StructuralPartialEq for RenderRenderers

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.