[][src]Trait spectrum::EmitBackendTrait

pub trait EmitBackendTrait {
    fn emit(
        &self,
        f: &mut Formatter<'_>,
        fragment: &str,
        style: &Style
    ) -> EmitResult; fn emitter(&self) -> EmitBackend<'_>
    where
        Self: Sized
, { ... } }

An implementation of EmitBackendTrait takes a piece of styled text and emits it into the supplied std::fmt::Formatter.

Required methods

fn emit(
    &self,
    f: &mut Formatter<'_>,
    fragment: &str,
    style: &Style
) -> EmitResult

Loading content...

Provided methods

fn emitter(&self) -> EmitBackend<'_> where
    Self: Sized

Loading content...

Implementors

impl EmitBackendTrait for EmitColored[src]

impl EmitBackendTrait for EmitForTest[src]

impl EmitBackendTrait for EmitPlain[src]

Loading content...