pub trait StringExt {
// Required methods
fn is_lowercase(&self) -> bool;
fn starts_with_lowercase(&self) -> bool;
fn to_lowercase_first(&self) -> String;
fn to_uppercase_first(&self) -> String;
}
Expand description
Additional methods for strings
Required Methods§
Sourcefn is_lowercase(&self) -> bool
fn is_lowercase(&self) -> bool
Checks if the string is all lowercase
Sourcefn starts_with_lowercase(&self) -> bool
fn starts_with_lowercase(&self) -> bool
Checks if a string starts with a lowercase character
Sourcefn to_lowercase_first(&self) -> String
fn to_lowercase_first(&self) -> String
Returns a new string starting with a first character in lowercase
Sourcefn to_uppercase_first(&self) -> String
fn to_uppercase_first(&self) -> String
Returns a new string starting with a first character in uppercase