[][src]Trait melib::text_processing::Truncate

pub trait Truncate {
    fn truncate_at_boundary(&mut self, new_len: usize);
fn trim_at_boundary(&self, new_len: usize) -> &str;
fn trim_left_at_boundary(&self, new_len: usize) -> &str;
fn truncate_left_at_boundary(&mut self, new_len: usize); }

Required methods

fn truncate_at_boundary(&mut self, new_len: usize)

fn trim_at_boundary(&self, new_len: usize) -> &str

fn trim_left_at_boundary(&self, new_len: usize) -> &str

fn truncate_left_at_boundary(&mut self, new_len: usize)

Loading content...

Implementations on Foreign Types

impl<'_> Truncate for &'_ str[src]

impl Truncate for String[src]

Loading content...

Implementors

Loading content...