Trait StrExt

Source
pub trait StrExt {
    // Required methods
    fn cpp_name_to_rust_fn_case(&self) -> Cow<'_, str>;
    fn lines_with_nl(&self) -> LinesWithNl<'_>;
    fn detect_indent(&self) -> Indent;
    fn compile_interpolation(&self) -> CompiledInterpolation<'_>;
    fn trim_start_idx(&self) -> usize;
    fn trim_end_idx(&self) -> usize;
    fn localname(&self) -> &str;
    fn namespace(&self) -> &str;
    fn module(&self) -> &str;
    fn cpp_name_from_fullname(&self, style: CppNameStyle) -> &str;
    fn capitalize_first_ascii_letter(&self) -> Option<(char, &str)>;
}

Required Methods§

Source

fn cpp_name_to_rust_fn_case(&self) -> Cow<'_, str>

Source

fn lines_with_nl(&self) -> LinesWithNl<'_>

Source

fn detect_indent(&self) -> Indent

Source

fn compile_interpolation(&self) -> CompiledInterpolation<'_>

Source

fn trim_start_idx(&self) -> usize

Source

fn trim_end_idx(&self) -> usize

Source

fn localname(&self) -> &str

For cv::rapid::Rapid returns Rapid

Source

fn namespace(&self) -> &str

For cv::rapid::Rapid returns cv::rapid

Source

fn module(&self) -> &str

For crate::rapid::Rapid and rapid::Rapid returns rapid

Source

fn cpp_name_from_fullname(&self, style: CppNameStyle) -> &str

Source

fn capitalize_first_ascii_letter(&self) -> Option<(char, &str)>

Implementations on Foreign Types§

Source§

impl StrExt for str

Implementors§