[−][src]Struct soft_ascii_string::SoftAsciiChar
a char
wrapper with a "is us-ascii" soft constraint
Methods
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 Into<char> for SoftAsciiChar
[src]
impl Extend<SoftAsciiChar> for SoftAsciiString
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SoftAsciiChar>,
[src]
I: IntoIterator<Item = SoftAsciiChar>,
impl<'a> Extend<&'a SoftAsciiChar> for SoftAsciiString
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'a SoftAsciiChar>,
[src]
I: IntoIterator<Item = &'a SoftAsciiChar>,
impl Clone for SoftAsciiChar
[src]
fn clone(&self) -> SoftAsciiChar
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SoftAsciiChar
[src]
impl Default for SoftAsciiChar
[src]
fn default() -> SoftAsciiChar
[src]
impl Eq for SoftAsciiChar
[src]
impl Ord for SoftAsciiChar
[src]
fn cmp(&self, other: &SoftAsciiChar) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SoftAsciiChar> for SoftAsciiChar
[src]
fn eq(&self, other: &SoftAsciiChar) -> bool
[src]
fn ne(&self, other: &SoftAsciiChar) -> bool
[src]
impl PartialEq<char> for SoftAsciiChar
[src]
impl PartialEq<SoftAsciiChar> for char
[src]
fn eq(&self, other: &SoftAsciiChar) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<SoftAsciiChar> for SoftAsciiChar
[src]
fn partial_cmp(&self, other: &SoftAsciiChar) -> Option<Ordering>
[src]
fn lt(&self, other: &SoftAsciiChar) -> bool
[src]
fn le(&self, other: &SoftAsciiChar) -> bool
[src]
fn gt(&self, other: &SoftAsciiChar) -> bool
[src]
fn ge(&self, other: &SoftAsciiChar) -> bool
[src]
impl Display for SoftAsciiChar
[src]
impl Debug for SoftAsciiChar
[src]
impl Hash for SoftAsciiChar
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl FromIterator<SoftAsciiChar> for SoftAsciiString
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SoftAsciiChar>,
[src]
I: IntoIterator<Item = SoftAsciiChar>,
impl<'a> FromIterator<&'a SoftAsciiChar> for SoftAsciiString
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = &'a SoftAsciiChar>,
[src]
I: IntoIterator<Item = &'a SoftAsciiChar>,
Auto Trait Implementations
impl Send for SoftAsciiChar
impl Sync for SoftAsciiChar
impl Unpin for SoftAsciiChar
impl UnwindSafe for SoftAsciiChar
impl RefUnwindSafe for SoftAsciiChar
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,