pub trait IntoTruncateContent {
    // Required methods
    fn truncate_start(self) -> TruncateContent;
    fn truncate_before(self, num: usize) -> TruncateContent;
}
Expand description

Helps creating content for Truncate.

Required Methods§

source

fn truncate_start(self) -> TruncateContent

Truncate at the start of the content.

source

fn truncate_before(self, num: usize) -> TruncateContent

Truncate num characters before the end of the string.

Implementors§