Enum string_patterns::enums::WordBounds
source · pub enum WordBounds {
None,
Start,
End,
Both,
}
Expand description
Defines the start, end and both bounds of a word
Variants§
Implementations§
source§impl WordBounds
impl WordBounds
sourcepub fn to_pattern(&self, word: &str) -> String
pub fn to_pattern(&self, word: &str) -> String
Convert word bounds
Auto Trait Implementations§
impl RefUnwindSafe for WordBounds
impl Send for WordBounds
impl Sync for WordBounds
impl Unpin for WordBounds
impl UnwindSafe for WordBounds
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