[][src]Struct zvariant::OwnedSignature

pub struct OwnedSignature(_);

Owned Signature


impl OwnedSignature[src]

pub fn into_inner(self) -> Signature<'static>[src]

Methods from Deref<Target = Signature<'static>>

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

The signature as a string.

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

The signature bytes.

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

the signature's length.

pub fn is_empty(&self) -> bool[src]

if the signature is empty.

pub fn to_owned(&self) -> Signature<'static>[src]

Creates an owned clone of self.

pub fn slice(&self, range: impl RangeBounds<usize>) -> Self[src]

Returns a slice of self for the provided range.


Requires that begin <= end and end <= self.len(), otherwise slicing will panic.

Trait Implementations

impl Clone for OwnedSignature[src]

impl Debug for OwnedSignature[src]

impl Deref for OwnedSignature[src]

type Target = Signature<'static>

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for OwnedSignature[src]

impl From<OwnedSignature> for Signature<'static>[src]

impl<'a> From<Signature<'a>> for OwnedSignature[src]

impl PartialEq<OwnedSignature> for OwnedSignature[src]

impl Serialize for OwnedSignature[src]

impl StructuralPartialEq for OwnedSignature[src]

impl Type for OwnedSignature[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.