Trait ToLower

Source
pub trait ToLower {
    // Required method
    fn to_lower(&self) -> Self;
}

Required Methods§

Source

fn to_lower(&self) -> Self

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 ToLower for u8

Source§

fn to_lower(&self) -> u8

| Converts the given character to its | lowercase equivalent. | | This function is locale independent. | It only converts uppercase characters | in the standard 7-bit ASCII range. | | This is a feature, not a limitation. | | ———– | @param[in] c | | the character to convert to lowercase. | | ———– | @return | | the lowercase equivalent of c; or the | argument if no conversion is possible. |

Source§

impl ToLower for String

Source§

fn to_lower(&self) -> String

| Returns the lowercase equivalent of | the given string. | | This function is locale independent. | It only converts uppercase characters | in the standard 7-bit ASCII range. | | This is a feature, not a limitation. | | ———– | @param[in] str | | the string to convert to lowercase. | | ———– | @return | | lowercased equivalent of str |

Implementors§