Trait opencv_binding_generator::StringExt

source ·
pub trait StringExt {
    // Required methods
    fn replacen_in_place(&mut self, from: &str, limit: usize, to: &str) -> bool;
    fn replace_in_place(&mut self, from: &str, to: &str) -> bool;
    fn replacen_in_place_regex(
        &mut self,
        from: &Regex,
        limit: usize,
        to: &str
    ) -> bool;
    fn replace_in_place_regex(&mut self, from: &Regex, to: &str) -> bool;
    fn replacen_in_place_regex_cb<'a>(
        &mut self,
        from: &Regex,
        limit: usize,
        replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a
    ) -> bool;
    fn replace_in_place_regex_cb<'a>(
        &mut self,
        from: &Regex,
        replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a
    ) -> bool;
    fn extend_join(
        &mut self,
        it: impl Iterator<Item = impl AsRef<str>>,
        sep: &str
    );
    fn extend_sep(&mut self, sep: &str, s: &str);
    fn push_indented_str(&mut self, indent: Indent, val: &str);
    fn bump_counter(&mut self);
    fn cleanup_name(&mut self);
}

Required Methods§

source

fn replacen_in_place(&mut self, from: &str, limit: usize, to: &str) -> bool

source

fn replace_in_place(&mut self, from: &str, to: &str) -> bool

source

fn replacen_in_place_regex( &mut self, from: &Regex, limit: usize, to: &str ) -> bool

source

fn replace_in_place_regex(&mut self, from: &Regex, to: &str) -> bool

source

fn replacen_in_place_regex_cb<'a>( &mut self, from: &Regex, limit: usize, replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a ) -> bool

source

fn replace_in_place_regex_cb<'a>( &mut self, from: &Regex, replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a ) -> bool

source

fn extend_join(&mut self, it: impl Iterator<Item = impl AsRef<str>>, sep: &str)

source

fn extend_sep(&mut self, sep: &str, s: &str)

source

fn push_indented_str(&mut self, indent: Indent, val: &str)

source

fn bump_counter(&mut self)

source

fn cleanup_name(&mut self)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl StringExt for String

source§

fn replacen_in_place(&mut self, from: &str, limit: usize, to: &str) -> bool

source§

fn replace_in_place(&mut self, from: &str, to: &str) -> bool

source§

fn replacen_in_place_regex( &mut self, from: &Regex, limit: usize, to: &str ) -> bool

source§

fn replace_in_place_regex(&mut self, from: &Regex, to: &str) -> bool

source§

fn replacen_in_place_regex_cb<'a>( &mut self, from: &Regex, limit: usize, replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a ) -> bool

source§

fn replace_in_place_regex_cb<'a>( &mut self, from: &Regex, replacer: impl FnMut(&str, &CaptureLocations) -> Option<Cow<'a, str>> + 'a ) -> bool

source§

fn extend_join( &mut self, it: impl IntoIterator<Item = impl AsRef<str>>, sep: &str )

source§

fn extend_sep(&mut self, sep: &str, s: &str)

source§

fn push_indented_str(&mut self, indent: Indent, val: &str)

source§

fn bump_counter(&mut self)

source§

fn cleanup_name(&mut self)

Implementors§