Substring

Trait Substring 

Source
pub trait Substring {
    // Required methods
    fn substring(&self, start: usize, end: usize) -> &str;
    fn remove(&self, index: usize, len: usize) -> String;
    fn remove_last(&self) -> String;
    fn find_substring(&self, substr: &str) -> Option<usize>;
}

Required Methods§

Source

fn substring(&self, start: usize, end: usize) -> &str

Source

fn remove(&self, index: usize, len: usize) -> String

Source

fn remove_last(&self) -> String

Source

fn find_substring(&self, substr: &str) -> Option<usize>

Implementations on Foreign Types§

Source§

impl Substring for String

Source§

fn substring(&self, start: usize, end: usize) -> &str

Source§

fn remove(&self, index: usize, len: usize) -> String

Source§

fn remove_last(&self) -> String

Source§

fn find_substring(&self, substr: &str) -> Option<usize>

Implementors§