pub struct Stringable(/* private fields */);Implementations§
Source§impl Stringable
impl Stringable
pub fn new(val: String) -> Self
Sourcepub fn after(self, search: &str) -> Self
pub fn after(self, search: &str) -> Self
Get the portion of the string after the first occurrence of a given value
Sourcepub fn before(self, search: &str) -> Self
pub fn before(self, search: &str) -> Self
Get the portion of the string before the first occurrence of a given value
Sourcepub fn between(self, from: &str, to: &str) -> Self
pub fn between(self, from: &str, to: &str) -> Self
Get the portion of the string between two given values
Auto Trait Implementations§
impl Freeze for Stringable
impl RefUnwindSafe for Stringable
impl Send for Stringable
impl Sync for Stringable
impl Unpin for Stringable
impl UnsafeUnpin for Stringable
impl UnwindSafe for Stringable
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