pub trait Pipeline: RichSink + Sized {
// Provided methods
fn clip(self, width: u16, marker: Option<char>) -> Clip<Self> { ... }
fn rows(self, max: u16) -> Rows<Self> { ... }
fn wrap(self, width: u16) -> Wrap<'static, Self> { ... }
fn wrap_chars(self, width: u16) -> CharWrap<Self> { ... }
fn wrap_prefixed<'p>(
self,
width: u16,
first: &'p Prefix,
cont: &'p Prefix,
) -> Wrap<'p, Self> { ... }
fn tee(self, copy: &mut RichText) -> Tee<'_, Self> { ... }
fn restyle<F: Fn(Style) -> Style>(self, map: F) -> Restyle<Self, F> { ... }
fn prefixed<'p>(
self,
first: &'p Prefix,
cont: &'p Prefix,
) -> Prefixed<'p, Self> { ... }
}Expand description
Functional adapters available on every rich sink.
Provided Methods§
Sourcefn clip(self, width: u16, marker: Option<char>) -> Clip<Self>
fn clip(self, width: u16, marker: Option<char>) -> Clip<Self>
Hard-clips each row to width, optionally replacing its final cell with
a marker.
Sourcefn wrap_chars(self, width: u16) -> CharWrap<Self>
fn wrap_chars(self, width: u16) -> CharWrap<Self>
Flows output grapheme-exact to width like a bare terminal: every
width break is a byte-preserving RichSink::soft_wrap, so joined
rows reproduce the source exactly in native copy.
Sourcefn wrap_prefixed<'p>(
self,
width: u16,
first: &'p Prefix,
cont: &'p Prefix,
) -> Wrap<'p, Self>
fn wrap_prefixed<'p>( self, width: u16, first: &'p Prefix, cont: &'p Prefix, ) -> Wrap<'p, Self>
Word-wraps output using first-row and continuation prefixes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".