[][src]Struct rand_regex::EncodedString

pub struct EncodedString(_);

A string together with its Encoding.

Implementations

impl EncodedString[src]

pub fn as_bytes(&self) -> &[u8][src]

Obtains the raw bytes of this string.

pub fn as_str(&self) -> Result<&str, Utf8Error>[src]

Tries to convert this instance as a UTF-8 string.

Errors

If this instance is not compatible with UTF-8, returns an error in the same manner as std::str::from_utf8().

pub fn encoding(&self) -> Encoding[src]

Returns the encoding of this string.

Trait Implementations

impl Debug for EncodedString[src]

impl Distribution<EncodedString> for Regex[src]

impl Eq for EncodedString[src]

impl From<String> for EncodedString[src]

impl From<Vec<u8, Global>> for EncodedString[src]

impl Hash for EncodedString[src]

impl Ord for EncodedString[src]

impl PartialEq<EncodedString> for EncodedString[src]

impl PartialOrd<EncodedString> for EncodedString[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,