[][src]Struct zvariant::Str

pub struct Str<'a>(_);

A string wrapper.

This is used for keeping strings in a Value. API is provided to convert from, and to a &str and String.

Implementations

impl<'a> Str<'a>[src]

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

The underlying string.

Trait Implementations

impl<'a> Basic for Str<'a>[src]

impl<'a> Clone for Str<'a>[src]

impl<'a> Debug for Str<'a>[src]

impl<'a> Deref for Str<'a>[src]

type Target = str

The resulting type after dereferencing.

impl<'de: 'a, 'a> Deserialize<'de> for Str<'a>[src]

impl<'a> Display for Str<'a>[src]

impl<'a> Eq for Str<'a>[src]

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

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

impl<'a> From<Str<'a>> for String[src]

impl<'a> From<String> for Str<'a>[src]

impl<'a> Hash for Str<'a>[src]

impl<'a, '_> PartialEq<&'_ str> for Str<'a>[src]

impl<'a> PartialEq<Str<'a>> for Str<'a>[src]

impl<'a> Serialize for Str<'a>[src]

impl<'a> StructuralEq for Str<'a>[src]

impl<'a> StructuralPartialEq for Str<'a>[src]

impl<'a> TryFrom<&'a Value<'a>> for &'a Str<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a Value<'a>> for Str<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<Value<'a>> for Str<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> Type for Str<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Str<'a>

impl<'a> Send for Str<'a>

impl<'a> Sync for Str<'a>

impl<'a> Unpin for Str<'a>

impl<'a> UnwindSafe for Str<'a>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.