CharString

Trait CharString 

Source
pub trait CharString {
    // Required methods
    fn indexof(&self, searchstring: &str, start_index: usize) -> Option<usize>;
    fn substr(&self, start_index: isize, length: isize) -> String;
    fn substru(&self, start_index: usize, length: usize) -> String;
    fn substr_end(&self, start_index: isize) -> String;
    fn substring(&self, start_index: isize, end_index: isize) -> String;
    fn str_remove(&self, start_index: usize, length: usize) -> String;
}

Required Methods§

Source

fn indexof(&self, searchstring: &str, start_index: usize) -> Option<usize>

Source

fn substr(&self, start_index: isize, length: isize) -> String

Source

fn substru(&self, start_index: usize, length: usize) -> String

Source

fn substr_end(&self, start_index: isize) -> String

Source

fn substring(&self, start_index: isize, end_index: isize) -> String

Source

fn str_remove(&self, start_index: usize, length: usize) -> String

Implementations on Foreign Types§

Source§

impl CharString for str

Source§

fn indexof(&self, searchstring: &str, start_index: usize) -> Option<usize>

Source§

fn substr(&self, start_index: isize, length: isize) -> String

Source§

fn substru(&self, start_index: usize, length: usize) -> String

Source§

fn substr_end(&self, start_index: isize) -> String

Source§

fn substring(&self, start_index: isize, end_index: isize) -> String

Source§

fn str_remove(&self, start_index: usize, length: usize) -> String

Source§

impl CharString for String

Source§

fn indexof(&self, searchstring: &str, start_index: usize) -> Option<usize>

Source§

fn str_remove(&self, start_index: usize, length: usize) -> String

Source§

fn substr(&self, start_index: isize, length: isize) -> String

Source§

fn substru(&self, start_index: usize, length: usize) -> String

Source§

fn substr_end(&self, start_index: isize) -> String

Source§

fn substring(&self, start_index: isize, end_index: isize) -> String

Implementors§