oxc_ecmascript

Trait StringIndexOf

Source
pub trait StringIndexOf {
    // Required method
    fn index_of(
        &self,
        search_value: Option<&str>,
        from_index: Option<f64>,
    ) -> isize;
}

Required Methods§

Source

fn index_of(&self, search_value: Option<&str>, from_index: Option<f64>) -> isize

String.prototype.indexOf ( searchString [ , position ] ) https://tc39.es/ecma262/#sec-string.prototype.indexof

Implementations on Foreign Types§

Source§

impl StringIndexOf for &str

Source§

fn index_of(&self, search_value: Option<&str>, from_index: Option<f64>) -> isize

Implementors§