Struct soft_ascii_string::SoftAsciiChar [−][src]
pub struct SoftAsciiChar(_);
a char wrapper with a "is us-ascii" soft constraint
Methods
impl SoftAsciiChar[src]
impl SoftAsciiCharpub fn from_unchecked(ch: char) -> Self[src]
pub fn from_unchecked(ch: char) -> Selfpub fn from_char_unchecked(ch: char) -> Self[src]
pub fn from_char_unchecked(ch: char) -> Self: use from_unchecked
pub fn from_char(ch: char) -> Result<Self, FromSourceError<char>>[src]
pub fn from_char(ch: char) -> Result<Self, FromSourceError<char>>pub fn is_ascii(self) -> bool[src]
pub fn is_ascii(self) -> boolpub fn revalidate_soft_constraint(self) -> Result<Self, char>[src]
pub fn revalidate_soft_constraint(self) -> Result<Self, char>impl SoftAsciiChar[src]
impl SoftAsciiCharpub fn is_digit(self, radix: u32) -> bool[src]
pub fn is_digit(self, radix: u32) -> boolpub fn to_digit(self, radix: u32) -> Option<u32>[src]
pub fn to_digit(self, radix: u32) -> Option<u32>pub fn escape_unicode(self) -> EscapeUnicode[src]
pub fn escape_unicode(self) -> EscapeUnicodepub fn escape_debug(self) -> EscapeDebug[src]
pub fn escape_debug(self) -> EscapeDebugpub fn escape_default(self) -> EscapeDefault[src]
pub fn escape_default(self) -> EscapeDefaultpub fn len_utf8(self) -> usize[src]
pub fn len_utf8(self) -> usizepub fn len_utf16(self) -> usize[src]
pub fn len_utf16(self) -> usizepub fn encode_utf8(self, dst: &mut [u8]) -> &mut str[src]
pub fn encode_utf8(self, dst: &mut [u8]) -> &mut strpub fn encode_utf16(self, dst: &mut [u16]) -> &mut [u16][src]
pub fn encode_utf16(self, dst: &mut [u16]) -> &mut [u16]pub fn is_alphabetic(self) -> bool[src]
pub fn is_alphabetic(self) -> boolpub fn is_lowercase(self) -> bool[src]
pub fn is_lowercase(self) -> boolpub fn is_uppercase(self) -> bool[src]
pub fn is_uppercase(self) -> boolpub fn is_whitespace(self) -> bool[src]
pub fn is_whitespace(self) -> boolpub fn is_alphanumeric(self) -> bool[src]
pub fn is_alphanumeric(self) -> boolpub fn is_control(self) -> bool[src]
pub fn is_control(self) -> boolpub fn is_numeric(self) -> bool[src]
pub fn is_numeric(self) -> boolpub fn to_lowercase(self) -> ToLowercase[src]
pub fn to_lowercase(self) -> ToLowercasepub fn to_uppercase(self) -> ToUppercase[src]
pub fn to_uppercase(self) -> ToUppercaseTrait Implementations
impl Debug for SoftAsciiChar[src]
impl Debug for SoftAsciiCharfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for SoftAsciiChar[src]
impl Default for SoftAsciiCharfn default() -> SoftAsciiChar[src]
fn default() -> SoftAsciiCharReturns the "default value" for a type. Read more
impl Copy for SoftAsciiChar[src]
impl Copy for SoftAsciiCharimpl Clone for SoftAsciiChar[src]
impl Clone for SoftAsciiCharfn clone(&self) -> SoftAsciiChar[src]
fn clone(&self) -> SoftAsciiCharReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for SoftAsciiChar[src]
impl PartialEq for SoftAsciiCharfn eq(&self, other: &SoftAsciiChar) -> bool[src]
fn eq(&self, other: &SoftAsciiChar) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SoftAsciiChar) -> bool[src]
fn ne(&self, other: &SoftAsciiChar) -> boolThis method tests for !=.
impl Eq for SoftAsciiChar[src]
impl Eq for SoftAsciiCharimpl PartialOrd for SoftAsciiChar[src]
impl PartialOrd for SoftAsciiCharfn partial_cmp(&self, other: &SoftAsciiChar) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &SoftAsciiChar) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &SoftAsciiChar) -> bool[src]
fn lt(&self, other: &SoftAsciiChar) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &SoftAsciiChar) -> bool[src]
fn le(&self, other: &SoftAsciiChar) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &SoftAsciiChar) -> bool[src]
fn gt(&self, other: &SoftAsciiChar) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &SoftAsciiChar) -> bool[src]
fn ge(&self, other: &SoftAsciiChar) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for SoftAsciiChar[src]
impl Ord for SoftAsciiCharfn cmp(&self, other: &SoftAsciiChar) -> Ordering[src]
fn cmp(&self, other: &SoftAsciiChar) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for SoftAsciiChar[src]
impl Hash for SoftAsciiCharfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for SoftAsciiChar[src]
impl Display for SoftAsciiCharfn fmt(&self, fter: &mut Formatter) -> Result[src]
fn fmt(&self, fter: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Into<char> for SoftAsciiChar[src]
impl Into<char> for SoftAsciiCharimpl PartialEq<char> for SoftAsciiChar[src]
impl PartialEq<char> for SoftAsciiCharfn eq(&self, other: &char) -> bool[src]
fn eq(&self, other: &char) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<SoftAsciiChar> for char[src]
impl PartialEq<SoftAsciiChar> for charfn eq(&self, other: &SoftAsciiChar) -> bool[src]
fn eq(&self, other: &SoftAsciiChar) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl FromIterator<SoftAsciiChar> for SoftAsciiString[src]
impl FromIterator<SoftAsciiChar> for SoftAsciiStringfn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiChar>, [src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiChar>, Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString[src]
impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiStringfn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiChar>, [src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiChar>, Creates a value from an iterator. Read more
impl Extend<SoftAsciiChar> for SoftAsciiString[src]
impl Extend<SoftAsciiChar> for SoftAsciiStringfn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiChar>, [src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiChar>, Extends a collection with the contents of an iterator. Read more
impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString[src]
impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiStringfn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiChar>, [src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiChar>, Extends a collection with the contents of an iterator. Read more
Auto Trait Implementations
impl Send for SoftAsciiChar
impl Send for SoftAsciiCharimpl Sync for SoftAsciiChar
impl Sync for SoftAsciiChar