pub struct TextTool;Implementations§
Source§impl TextTool
impl TextTool
pub fn new() -> Self
pub fn trim(&self, s: &str) -> MustPurpose<String>
pub fn lowercase(&self, s: &str) -> MustPurpose<String>
pub fn uppercase(&self, s: &str) -> MustPurpose<String>
pub fn capitalize(&self, s: &str) -> MustPurpose<String>
pub fn to_snake_case(&self, s: &str) -> MustPurpose<String>
pub fn to_camel_case(&self, s: &str) -> MustPurpose<String>
pub fn to_pascal_case(&self, s: &str) -> MustPurpose<String>
pub fn to_kebab_case(&self, s: &str) -> MustPurpose<String>
pub fn normalize_whitespace(&self, s: &str) -> MustPurpose<String>
pub fn contains(&self, s: &str, substring: &str) -> MustPurpose<bool>
pub fn starts_with(&self, s: &str, prefix: &str) -> MustPurpose<bool>
pub fn ends_with(&self, s: &str, suffix: &str) -> MustPurpose<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextTool
impl RefUnwindSafe for TextTool
impl Send for TextTool
impl Sync for TextTool
impl Unpin for TextTool
impl UnsafeUnpin for TextTool
impl UnwindSafe for TextTool
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