Struct soft_ascii_string::SoftAsciiChar [−][src]
pub struct SoftAsciiChar(_);
a char
wrapper with a "is us-ascii" soft constraint
Methods
impl SoftAsciiChar
[src]
impl SoftAsciiChar
pub fn from_unchecked(ch: char) -> Self
[src]
pub fn from_unchecked(ch: char) -> Self
pub 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) -> bool
pub fn revalidate_soft_constraint(self) -> Result<Self, char>
[src]
pub fn revalidate_soft_constraint(self) -> Result<Self, char>
impl SoftAsciiChar
[src]
impl SoftAsciiChar
pub fn is_digit(self, radix: u32) -> bool
[src]
pub fn is_digit(self, radix: u32) -> bool
pub 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) -> EscapeUnicode
pub fn escape_debug(self) -> EscapeDebug
[src]
pub fn escape_debug(self) -> EscapeDebug
pub fn escape_default(self) -> EscapeDefault
[src]
pub fn escape_default(self) -> EscapeDefault
pub fn len_utf8(self) -> usize
[src]
pub fn len_utf8(self) -> usize
pub fn len_utf16(self) -> usize
[src]
pub fn len_utf16(self) -> usize
pub fn encode_utf8(self, dst: &mut [u8]) -> &mut str
[src]
pub fn encode_utf8(self, dst: &mut [u8]) -> &mut str
pub 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) -> bool
pub fn is_lowercase(self) -> bool
[src]
pub fn is_lowercase(self) -> bool
pub fn is_uppercase(self) -> bool
[src]
pub fn is_uppercase(self) -> bool
pub fn is_whitespace(self) -> bool
[src]
pub fn is_whitespace(self) -> bool
pub fn is_alphanumeric(self) -> bool
[src]
pub fn is_alphanumeric(self) -> bool
pub fn is_control(self) -> bool
[src]
pub fn is_control(self) -> bool
pub fn is_numeric(self) -> bool
[src]
pub fn is_numeric(self) -> bool
pub fn to_lowercase(self) -> ToLowercase
[src]
pub fn to_lowercase(self) -> ToLowercase
pub fn to_uppercase(self) -> ToUppercase
[src]
pub fn to_uppercase(self) -> ToUppercase
Trait Implementations
impl Debug for SoftAsciiChar
[src]
impl Debug for SoftAsciiChar
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for SoftAsciiChar
[src]
impl Default for SoftAsciiChar
fn default() -> SoftAsciiChar
[src]
fn default() -> SoftAsciiChar
Returns the "default value" for a type. Read more
impl Copy for SoftAsciiChar
[src]
impl Copy for SoftAsciiChar
impl Clone for SoftAsciiChar
[src]
impl Clone for SoftAsciiChar
fn clone(&self) -> SoftAsciiChar
[src]
fn clone(&self) -> SoftAsciiChar
Returns 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 SoftAsciiChar
fn eq(&self, other: &SoftAsciiChar) -> bool
[src]
fn eq(&self, other: &SoftAsciiChar) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for SoftAsciiChar
[src]
impl Eq for SoftAsciiChar
impl PartialOrd for SoftAsciiChar
[src]
impl PartialOrd for SoftAsciiChar
fn 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) -> bool
This 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) -> bool
This 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) -> bool
This 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) -> bool
This 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 SoftAsciiChar
fn cmp(&self, other: &SoftAsciiChar) -> Ordering
[src]
fn cmp(&self, other: &SoftAsciiChar) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for SoftAsciiChar
[src]
impl Hash for SoftAsciiChar
fn 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 SoftAsciiChar
fn fmt(&self, fter: &mut Formatter) -> Result
[src]
fn fmt(&self, fter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<char> for SoftAsciiChar
[src]
impl Into<char> for SoftAsciiChar
impl PartialEq<char> for SoftAsciiChar
[src]
impl PartialEq<char> for SoftAsciiChar
fn eq(&self, other: &char) -> bool
[src]
fn eq(&self, other: &char) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<SoftAsciiChar> for char
[src]
impl PartialEq<SoftAsciiChar> for char
fn eq(&self, other: &SoftAsciiChar) -> bool
[src]
fn eq(&self, other: &SoftAsciiChar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl FromIterator<SoftAsciiChar> for SoftAsciiString
[src]
impl FromIterator<SoftAsciiChar> for SoftAsciiString
fn 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 SoftAsciiString
fn 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 SoftAsciiString
fn 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 SoftAsciiString
fn 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 SoftAsciiChar
impl Sync for SoftAsciiChar
impl Sync for SoftAsciiChar