Struct ascii::AsciiString
[−]
[src]
pub struct AsciiString {
// some fields omitted
}Methods
impl AsciiString[src]
fn new() -> AsciiString
fn from_bytes<B>(bytes: B) -> Result<AsciiString, B> where B: Into<Vec<u8>> + AsRef<[u8]>
Methods from Deref<Target=AsciiStr>
fn as_str(&self) -> &str
fn to_ascii_string(&self) -> AsciiString
fn as_bytes(&self) -> &[u8]
fn len(&self) -> usize
Trait Implementations
impl Hash for AsciiString[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Ord for AsciiString[src]
fn cmp(&self, __arg_0: &AsciiString) -> Ordering
This method returns an Ordering between self and other. Read more
impl PartialOrd for AsciiString[src]
fn partial_cmp(&self, __arg_0: &AsciiString) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &AsciiString) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &AsciiString) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &AsciiString) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &AsciiString) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for AsciiString[src]
impl PartialEq for AsciiString[src]
fn eq(&self, __arg_0: &AsciiString) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &AsciiString) -> bool
This method tests for !=.
impl Clone for AsciiString[src]
fn clone(&self) -> AsciiString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl FromStr for AsciiString[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<AsciiString, ()>
Parses a string s to return a value of this type. Read more
impl Deref for AsciiString[src]
type Target = AsciiStr
The resulting type after dereferencing
fn deref<'a>(&'a self) -> &'a AsciiStr
The method called to dereference a value
impl DerefMut for AsciiString[src]
impl Borrow<AsciiStr> for AsciiString[src]
impl Into<Vec<u8>> for AsciiString[src]
impl Into<String> for AsciiString[src]
impl AsRef<AsciiStr> for AsciiString[src]
impl Display for AsciiString[src]
impl Debug for AsciiString[src]
impl<'a> PartialEq<String> for AsciiString[src]
fn eq(&self, other: &String) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &String) -> bool
This method tests for !=.
impl<'a> PartialEq<&'a AsciiStr> for AsciiString[src]
fn eq(&self, other: &&'a AsciiStr) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &&'a AsciiStr) -> bool
This method tests for !=.
impl<'a> PartialEq<&'a str> for AsciiString[src]
fn eq(&self, other: &&'a str) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &&'a str) -> bool
This method tests for !=.