Trait cuach::Render

source ·
pub trait Render {
    type Error;

    // Required method
    fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>;

    // Provided method
    fn render(&self) -> Result<String, Self::Error> { ... }
}

Required Associated Types§

Required Methods§

source

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

Provided Methods§

source

fn render(&self) -> Result<String, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Render for f32

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for f64

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for i32

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for i64

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for isize

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for u32

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for u64

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for ()

§

type Error = Infallible

source§

fn render_into<W: Write>(&self, _: &mut W) -> Result<(), Self::Error>

source§

impl Render for usize

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for String

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl Render for Uuid

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl<'a> Render for &'a str

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl<'a> Render for Cow<'a, str>

§

type Error = Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

source§

impl<'a, R: Render> Render for &'a R

§

type Error = <R as Render>::Error

source§

fn render_into<W: Write>(&self, w: &mut W) -> Result<(), Self::Error>

Implementors§