StringSubstring

Trait StringSubstring 

Source
pub trait StringSubstring {
    // Required method
    fn substring(&self, start: Option<f64>, end: Option<f64>) -> String;
}

Required Methods§

Source

fn substring(&self, start: Option<f64>, end: Option<f64>) -> String

String.prototype.substring ( start , end ] ) https://tc39.es/ecma262/#sec-string.prototype.substring

Implementations on Foreign Types§

Source§

impl StringSubstring for &str

Source§

fn substring(&self, start: Option<f64>, end: Option<f64>) -> String

Implementors§