[][src]Enum amqp_codec::types::Str

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

Variants

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

Methods

impl Str[src]

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

pub fn as_bytes(&self) -> &[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 Encode for Str[src]

impl From<Str> for Symbol[src]

impl From<Str> for Variant[src]

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

impl From<ByteString> for Str[src]

impl From<String> for Str[src]

impl Clone for Str[src]

impl Eq 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 Debug for Str[src]

impl Display for Str[src]

impl Hash for Str[src]

impl StructuralEq for Str[src]

impl Borrow<str> for Str[src]

Auto Trait Implementations

impl Send for Str

impl Sync for Str

impl Unpin for Str

impl UnwindSafe for Str

impl RefUnwindSafe for Str

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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