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§

source

fn from_str(str: &str) -> Self

parse from &str

source

fn _append(&self, other: Self) -> Self

append string with another

source

fn _multiply(&self, n: usize) -> Self

multiply string n-times

source

fn _capitalize(&self) -> Self

capitalize string

source

fn _lower(&self) -> Self

lower case string

source

fn _upper(&self) -> Self

upper case string

source

fn _swapcase(&self) -> Self

swap case in string

source

fn _center(&self, width: usize, fill_char: char) -> Self

center string elements

source

fn _join(&self, sep: Self) -> Self

join string by separator

source

fn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>

partition string by first occurrence of separator

source

fn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>

partition string by last occurrence of separator

source

fn _split(&self, sep: Self, max_split: Option<usize>) -> List<Self>

split string by separator

source

fn _rsplit(&self, sep: Self, max_split: Option<usize>) -> List<Self>

split string by separator from right

source

fn _splitlines(&self, keep_ends: bool) -> List<Self>

split string by line break character

source

fn _replace(&self, old: Self, new: Self, count: Option<usize>) -> Self

replace string with times

source

fn _strip(&self, chars: Self) -> Self

strips string elements

source

fn _ljust(&self, width: usize, fill_char: char) -> Self

left-justifies string elements

source

fn _lstrip(&self, chars: Self) -> Self

left-strips string elements

source

fn _rjust(&self, width: usize, fill_char: char) -> Self

right-justifies string elements

source

fn _rstrip(&self, chars: Self) -> Self

right-strips string elements

source

fn _equal(&self, other: Self) -> bool

is equal to

source

fn _not_equal(&self, other: Self) -> bool

is not equal to

source

fn _greater_equal(&self, other: Self) -> bool

is greater or equal to

source

fn _less_equal(&self, other: Self) -> bool

is less or equal to

source

fn _greater(&self, other: Self) -> bool

is greater than

source

fn _less(&self, other: Self) -> bool

is less than

source

fn _count(&self, sub: &str) -> usize

counts non-overlapping occurrences of substring

Implementations on Foreign Types§

source§

impl Alphanumeric for String

source§

fn from_str(str: &str) -> Self

source§

fn _append(&self, other: Self) -> Self

source§

fn _multiply(&self, n: usize) -> Self

source§

fn _capitalize(&self) -> Self

source§

fn _lower(&self) -> Self

source§

fn _upper(&self) -> Self

source§

fn _swapcase(&self) -> Self

source§

fn _center(&self, width: usize, fill_char: char) -> Self

source§

fn _join(&self, sep: Self) -> Self

source§

fn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>

source§

fn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>

source§

fn _split(&self, sep: Self, max_split: Option<usize>) -> List<Self>

source§

fn _rsplit(&self, sep: Self, max_split: Option<usize>) -> List<Self>

source§

fn _splitlines(&self, keep_ends: bool) -> List<Self>

source§

fn _replace(&self, old: Self, new: Self, count: Option<usize>) -> Self

source§

fn _strip(&self, chars: Self) -> Self

source§

fn _ljust(&self, width: usize, fill_char: char) -> Self

source§

fn _lstrip(&self, chars: Self) -> Self

source§

fn _rjust(&self, width: usize, fill_char: char) -> Self

source§

fn _rstrip(&self, chars: Self) -> Self

source§

fn _equal(&self, other: Self) -> bool

source§

fn _not_equal(&self, other: Self) -> bool

source§

fn _greater_equal(&self, other: Self) -> bool

source§

fn _less_equal(&self, other: Self) -> bool

source§

fn _greater(&self, other: Self) -> bool

source§

fn _less(&self, other: Self) -> bool

source§

fn _count(&self, sub: &str) -> usize

source§

impl Alphanumeric for char

source§

fn from_str(str: &str) -> Self

source§

fn _append(&self, _: Self) -> Self

source§

fn _multiply(&self, _: usize) -> Self

source§

fn _capitalize(&self) -> Self

source§

fn _lower(&self) -> Self

source§

fn _upper(&self) -> Self

source§

fn _swapcase(&self) -> Self

source§

fn _center(&self, _: usize, _: char) -> Self

source§

fn _join(&self, _: Self) -> Self

source§

fn _partition(&self, sep: Self) -> Tuple3<Self, Self, Self>

source§

fn _rpartition(&self, sep: Self) -> Tuple3<Self, Self, Self>

source§

fn _split(&self, sep: Self, _: Option<usize>) -> List<Self>

source§

fn _rsplit(&self, sep: Self, _: Option<usize>) -> List<Self>

source§

fn _splitlines(&self, _: bool) -> List<Self>

source§

fn _replace(&self, old: Self, new: Self, _: Option<usize>) -> Self

source§

fn _strip(&self, chars: Self) -> Self

source§

fn _ljust(&self, _: usize, _: char) -> Self

source§

fn _lstrip(&self, chars: Self) -> Self

source§

fn _rjust(&self, _: usize, _: char) -> Self

source§

fn _rstrip(&self, chars: Self) -> Self

source§

fn _equal(&self, other: Self) -> bool

source§

fn _not_equal(&self, other: Self) -> bool

source§

fn _greater_equal(&self, other: Self) -> bool

source§

fn _less_equal(&self, other: Self) -> bool

source§

fn _greater(&self, other: Self) -> bool

source§

fn _less(&self, other: Self) -> bool

source§

fn _count(&self, sub: &str) -> usize

Implementors§