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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.