pub struct CellInfo<'a> { /* private fields */ }
Expand description
The struct is a Cell implementation which keeps width information pre allocated.
Implementations
Trait Implementations
sourceimpl Cell for CellInfo<'_>
impl Cell for CellInfo<'_>
sourcefn count_lines(&self) -> usize
fn count_lines(&self) -> usize
Returns a number of lines cell has.
sourcefn line_width<W>(&self, i: usize, _: W) -> usizewhere
W: WidthFunc,
fn line_width<W>(&self, i: usize, _: W) -> usizewhere
W: WidthFunc,
Returns a width of cell line.
sourcefn fmt_prefix(&self, _: &mut Formatter<'_>) -> Result
fn fmt_prefix(&self, _: &mut Formatter<'_>) -> Result
Prints a prefix. Read more
sourcefn fmt_suffix(&self, _: &mut Formatter<'_>) -> Result
fn fmt_suffix(&self, _: &mut Formatter<'_>) -> Result
Prints a suffix. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for CellInfo<'a>
impl<'a> Send for CellInfo<'a>
impl<'a> Sync for CellInfo<'a>
impl<'a> Unpin for CellInfo<'a>
impl<'a> UnwindSafe for CellInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more