[][src]Struct soft_ascii_string::SoftAsciiChar

pub struct SoftAsciiChar(_);

a char wrapper with a "is us-ascii" soft constraint


impl SoftAsciiChar[src]

pub fn from_unchecked(ch: char) -> Self[src]

pub fn from_char_unchecked(ch: char) -> Self[src]

Deprecated since 1.0.0:

use from_unchecked

pub fn from_char(ch: char) -> Result<Self, FromSourceError<char>>[src]

pub fn is_ascii(self) -> bool[src]

pub fn revalidate_soft_constraint(self) -> Result<Self, char>[src]

impl SoftAsciiChar[src]

pub fn is_digit(self, radix: u32) -> bool[src]

pub fn to_digit(self, radix: u32) -> Option<u32>[src]

pub fn escape_unicode(self) -> EscapeUnicode[src]

pub fn escape_debug(self) -> EscapeDebug[src]

pub fn escape_default(self) -> EscapeDefault[src]

pub fn len_utf8(self) -> usize[src]

pub fn len_utf16(self) -> usize[src]

pub fn encode_utf8(self, dst: &mut [u8]) -> &mut str[src]

pub fn encode_utf16(self, dst: &mut [u16]) -> &mut [u16][src]

pub fn is_alphabetic(self) -> bool[src]

pub fn is_lowercase(self) -> bool[src]

pub fn is_uppercase(self) -> bool[src]

pub fn is_whitespace(self) -> bool[src]

pub fn is_alphanumeric(self) -> bool[src]

pub fn is_control(self) -> bool[src]

pub fn is_numeric(self) -> bool[src]

pub fn to_lowercase(self) -> ToLowercase[src]

pub fn to_uppercase(self) -> ToUppercase[src]

Trait Implementations

impl Clone for SoftAsciiChar[src]

impl Copy for SoftAsciiChar[src]

impl Debug for SoftAsciiChar[src]

impl Default for SoftAsciiChar[src]

impl Display for SoftAsciiChar[src]

impl Eq for SoftAsciiChar[src]

impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString[src]

impl Extend<SoftAsciiChar> for SoftAsciiString[src]

impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString[src]

impl FromIterator<SoftAsciiChar> for SoftAsciiString[src]

impl Hash for SoftAsciiChar[src]

impl Into<char> for SoftAsciiChar[src]

impl Ord for SoftAsciiChar[src]

impl PartialEq<SoftAsciiChar> for SoftAsciiChar[src]

impl PartialEq<SoftAsciiChar> for char[src]

impl PartialEq<char> for SoftAsciiChar[src]

impl PartialOrd<SoftAsciiChar> for SoftAsciiChar[src]

impl StructuralEq for SoftAsciiChar[src]

impl StructuralPartialEq for SoftAsciiChar[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.