Trait moto::Renderable

source ·
pub trait Renderable<'a> {
    // Required method
    fn render<'b>(&'b self, style: &'a CStyle<'a>) -> StyledText<'b>
       where 'a: 'b;

    // Provided methods
    fn style<'b>(&'b self, style: &'a CStyle<'a>) -> StyledText<'b>
       where 'a: 'b { ... }
    fn show<'b>(&'b self, style: &'a CStyle<'a>)
       where 'a: 'b { ... }
    fn showln<'b>(&'b self, style: &'a CStyle<'a>)
       where 'a: 'b { ... }
    fn write<'b>(
        &'b self,
        style: &'a CStyle<'a>,
        writer: &mut dyn Write
    ) -> Result<(), Error>
       where 'a: 'b { ... }
    fn write_line<'b>(
        &'b self,
        style: &'a CStyle<'a>,
        writer: &mut dyn Write
    ) -> Result<(), Error>
       where 'a: 'b { ... }
}

Required Methods§

source

fn render<'b>(&'b self, style: &'a CStyle<'a>) -> StyledText<'b>
where 'a: 'b,

Provided Methods§

source

fn style<'b>(&'b self, style: &'a CStyle<'a>) -> StyledText<'b>
where 'a: 'b,

source

fn show<'b>(&'b self, style: &'a CStyle<'a>)
where 'a: 'b,

source

fn showln<'b>(&'b self, style: &'a CStyle<'a>)
where 'a: 'b,

source

fn write<'b>( &'b self, style: &'a CStyle<'a>, writer: &mut dyn Write ) -> Result<(), Error>
where 'a: 'b,

source

fn write_line<'b>( &'b self, style: &'a CStyle<'a>, writer: &mut dyn Write ) -> Result<(), Error>
where 'a: 'b,

Implementations on Foreign Types§

source§

impl<'a> Renderable<'a> for str

source§

fn render<'b>(&'b self, style: &'a CStyle<'a>) -> StyledText<'b>
where 'a: 'b,

Implementors§