[][src]Enum ntex_amqp_codec::types::Str

pub enum Str {
    String(String),
    ByteStr(ByteString),
    Static(&'static str),
}

Variants

String(String)
ByteStr(ByteString)
Static(&'static str)

Implementations

impl Str[src]

pub fn from_str(s: &str) -> Str[src]

pub const fn from_static(s: &'static str) -> Str[src]

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn as_str(&self) -> &str[src]

pub fn to_bytes_str(&self) -> ByteString[src]

pub fn len(&self) -> usize[src]

Trait Implementations

impl Borrow<str> for Str[src]

impl Clone for Str[src]

impl Debug for Str[src]

impl Display for Str[src]

impl Encode for Str[src]

impl Eq for Str[src]

impl From<&'static str> for Str[src]

impl From<ByteString> for Str[src]

impl From<Str> for Symbol[src]

impl From<Str> for Variant[src]

impl From<String> for Str[src]

impl Hash for Str[src]

impl Ord for Str[src]

impl PartialEq<Str> for Str[src]

impl PartialEq<str> for Str[src]

impl PartialOrd<Str> for Str[src]

impl StructuralEq for Str[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> CallHasher for T where
    T: Hash + ?Sized
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.