[][src]Trait odds::string::StrExt

pub trait StrExt {
    fn rep(&self, n: usize) -> String;
fn append(&self, s: &str) -> String;
fn prefixes(&self) -> Prefixes;
fn suffixes(&self) -> Suffixes;
fn substrings(&self) -> Substrings; }

Extra methods for str

Required methods

fn rep(&self, n: usize) -> String

Deprecated:

Use str::repeat instead

Repeat the string n times.

Requires feature="std"

fn append(&self, s: &str) -> String

Requires feature="std"

fn prefixes(&self) -> Prefixes

All non-empty prefixes

fn suffixes(&self) -> Suffixes

All non-empty suffixes

fn substrings(&self) -> Substrings

Produce all non-empty substrings

Loading content...

Implementations on Foreign Types

impl StrExt for str[src]

Loading content...

Implementors

Loading content...