Trait arr_rs::alphanumeric::types::Alphanumeric
source · pub trait Alphanumeric: ArrayElement {
Show 27 methods
// Required methods
fn from_str(str: &str) -> Self;
fn _append(&self, other: Self) -> Self;
fn _multiply(&self, n: usize) -> Self;
fn _capitalize(&self) -> Self;
fn _lower(&self) -> Self;
fn _upper(&self) -> Self;
fn _swapcase(&self) -> Self;
fn _center(&self, width: usize, fill_char: char) -> Self;
fn _join(&self, sep: Self) -> Self;
fn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>;
fn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>;
fn _split(&self, sep: Self, max_split: Option<usize>) -> List<Self>;
fn _rsplit(&self, sep: Self, max_split: Option<usize>) -> List<Self>;
fn _splitlines(&self, keep_ends: bool) -> List<Self>;
fn _replace(&self, old: Self, new: Self, count: Option<usize>) -> Self;
fn _strip(&self, chars: Self) -> Self;
fn _ljust(&self, width: usize, fill_char: char) -> Self;
fn _lstrip(&self, chars: Self) -> Self;
fn _rjust(&self, width: usize, fill_char: char) -> Self;
fn _rstrip(&self, chars: Self) -> Self;
fn _equal(&self, other: Self) -> bool;
fn _not_equal(&self, other: Self) -> bool;
fn _greater_equal(&self, other: Self) -> bool;
fn _less_equal(&self, other: Self) -> bool;
fn _greater(&self, other: Self) -> bool;
fn _less(&self, other: Self) -> bool;
fn _count(&self, sub: &str) -> usize;
}
Expand description
Alphanumeric trait for array
Required Methods§
sourcefn _capitalize(&self) -> Self
fn _capitalize(&self) -> Self
capitalize string
sourcefn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>
fn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>
partition string by first occurrence of separator
sourcefn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>
fn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>
partition string by last occurrence of separator
sourcefn _rsplit(&self, sep: Self, max_split: Option<usize>) -> List<Self>
fn _rsplit(&self, sep: Self, max_split: Option<usize>) -> List<Self>
split string by separator from right
sourcefn _splitlines(&self, keep_ends: bool) -> List<Self>
fn _splitlines(&self, keep_ends: bool) -> List<Self>
split string by line break character
sourcefn _replace(&self, old: Self, new: Self, count: Option<usize>) -> Self
fn _replace(&self, old: Self, new: Self, count: Option<usize>) -> Self
replace
sourcefn _not_equal(&self, other: Self) -> bool
fn _not_equal(&self, other: Self) -> bool
is not equal to
sourcefn _greater_equal(&self, other: Self) -> bool
fn _greater_equal(&self, other: Self) -> bool
is greater or equal to
sourcefn _less_equal(&self, other: Self) -> bool
fn _less_equal(&self, other: Self) -> bool
is less or equal to