pub struct Between { /* private fields */ }Implementations§
Source§impl Between
impl Between
pub fn new(chars: Vec<char>) -> Self
pub fn init() -> Self
pub fn chars(&self) -> &Vec<char>
pub fn high(&self) -> char
pub fn low(&self) -> char
pub fn valid<S>(&self, string: S) -> bool
Sourcepub fn between<S, T>(&self, this: S, that: T) -> Option<String>
pub fn between<S, T>(&self, this: S, that: T) -> Option<String>
Generate a string that can sort between this and that.
pub fn after<S>(&self, before_string: S) -> Option<String>
pub fn before<S>(&self, after_string: S) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Between
impl RefUnwindSafe for Between
impl Send for Between
impl Sync for Between
impl Unpin for Between
impl UnsafeUnpin for Between
impl UnwindSafe for Between
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more