pub trait ToUpper {
// Required method
fn to_upper(&self) -> Self;
}
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl ToUpper for u8
| Converts the given character to its
| uppercase equivalent.
|
| This function is locale independent.
| It only converts lowercase characters
| in the standard 7-bit ASCII range.
|
| This is a feature, not a limitation.
|
| ———–
| @param[in] c
|
| the character to convert to uppercase.
|
| ———–
| @return
|
| the uppercase equivalent of c; or the
| argument if no conversion is possible.
|
impl ToUpper for u8
| Converts the given character to its | uppercase equivalent. | | This function is locale independent. | It only converts lowercase characters | in the standard 7-bit ASCII range. | | This is a feature, not a limitation. | | ———– | @param[in] c | | the character to convert to uppercase. | | ———– | @return | | the uppercase equivalent of c; or the | argument if no conversion is possible. |
Source§impl ToUpper for String
| Returns the uppercase equivalent of
| the given string.
|
| This function is locale independent.
| It only converts lowercase characters
| in the standard 7-bit ASCII range.
|
| This is a feature, not a limitation.
|
| ———–
| @param[in] str
|
| the string to convert to uppercase.
|
| ———–
| @return
|
| UPPERCASED EQUIVALENT OF str
|
impl ToUpper for String
| Returns the uppercase equivalent of | the given string. | | This function is locale independent. | It only converts lowercase characters | in the standard 7-bit ASCII range. | | This is a feature, not a limitation. | | ———– | @param[in] str | | the string to convert to uppercase. | | ———– | @return | | UPPERCASED EQUIVALENT OF str |