pub struct Wrapper<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> Wrapper<'a, 'b>where
'a: 'b,
impl<'a, 'b> Wrapper<'a, 'b>where 'a: 'b,
pub fn new(data: &'a [Vec<Cow<'b, str>>]) -> Self
pub fn wrap(&mut self, max_width: usize)
sourcepub fn wrap_with(&mut self, styles: &[Style], max_width: usize)
pub fn wrap_with(&mut self, styles: &[Style], max_width: usize)
Modify wrap_width if wrap_width is 0
pub fn get_output(&self) -> &Vec<Vec<Wrapped<'b>>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for Wrapper<'a, 'b>
impl<'a, 'b> Send for Wrapper<'a, 'b>
impl<'a, 'b> Sync for Wrapper<'a, 'b>
impl<'a, 'b> Unpin for Wrapper<'a, 'b>
impl<'a, 'b> UnwindSafe for Wrapper<'a, 'b>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more