Skip to main content

CharConvertTryInto

Trait CharConvertTryInto 

Source
pub trait CharConvertTryInto<T>: Sized {
    // Required methods
    fn into_number(self) -> Option<T>;
    fn into_alphabetic_number(self) -> Option<T>;
    fn into_lower_alphabetic_number(self) -> Option<T>;
    fn into_upper_alphabetic_number(self) -> Option<T>;
}

Required Methods§

Source

fn into_number(self) -> Option<T>

map '0'..='9' to 0..=9

Source

fn into_alphabetic_number(self) -> Option<T>

map ('A'..='Z' or 'a'..='z') to 0..=25

Source

fn into_lower_alphabetic_number(self) -> Option<T>

map 'a'..='z' to 0..=25

Source

fn into_upper_alphabetic_number(self) -> Option<T>

map 'A'..='Z' to 0..=25

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CharConvertTryInto<u8> for char

Source§

impl CharConvertTryInto<u8> for u8

Source§

impl CharConvertTryInto<u16> for char

Source§

impl CharConvertTryInto<u16> for u8

Source§

impl CharConvertTryInto<u32> for char

Source§

impl CharConvertTryInto<u32> for u8

Source§

impl CharConvertTryInto<u64> for char

Source§

impl CharConvertTryInto<u64> for u8

Source§

impl CharConvertTryInto<u128> for char

Source§

impl CharConvertTryInto<u128> for u8

Source§

impl CharConvertTryInto<usize> for char

Source§

impl CharConvertTryInto<usize> for u8

Implementors§