pub struct StringUtils;Implementations§
Source§impl StringUtils
impl StringUtils
pub fn html_entities(str_input: &str) -> String
pub fn normalize(str_input: &str) -> String
Sourcepub fn wrap_text(line: &str, column_width: usize) -> String
pub fn wrap_text(line: &str, column_width: usize) -> String
Unlike the free wrap_text function, this associated method matches
java-diff-utils’ StringUtils.wrapText(String, int), which requires a
positive column width and panics otherwise.
pub fn wrap_text_list(list: &[String], column_width: usize) -> Vec<String>
Auto Trait Implementations§
impl Freeze for StringUtils
impl RefUnwindSafe for StringUtils
impl Send for StringUtils
impl Sync for StringUtils
impl Unpin for StringUtils
impl UnsafeUnpin for StringUtils
impl UnwindSafe for StringUtils
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