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§
sourcefn truncate_start(self) -> TruncateContent
fn truncate_start(self) -> TruncateContent
Truncate at the start of the content.
sourcefn truncate_before(self, num: usize) -> TruncateContent
fn truncate_before(self, num: usize) -> TruncateContent
Truncate num
characters before the end of the string.