[−][src]Struct zvariant::Signature
String that identifies the type of an encoded value.
Methods
impl Signature
[src]
pub fn new(signature: impl Into<Signature>) -> Self
[src]
Create a new Signature
.
pub fn as_str(&self) -> &str
[src]
The signature as a string.
Trait Implementations
impl Basic for Signature
[src]
impl Clone for Signature
[src]
impl Debug for Signature
[src]
impl Decode for Signature
[src]
fn slice_data(
data: impl Into<SharedData>,
signature: impl Into<Signature>,
_format: EncodingFormat
) -> Result<SharedData, VariantError>
[src]
data: impl Into<SharedData>,
signature: impl Into<Signature>,
_format: EncodingFormat
) -> Result<SharedData, VariantError>
fn decode(
data: impl Into<SharedData>,
signature: impl Into<Signature>,
_format: EncodingFormat
) -> Result<Self, VariantError>
[src]
data: impl Into<SharedData>,
signature: impl Into<Signature>,
_format: EncodingFormat
) -> Result<Self, VariantError>
fn take_from_variant(variant: Variant) -> Result<Self, VariantError>
[src]
fn from_variant(variant: &Variant) -> Result<&Self, VariantError>
[src]
fn ensure_correct_signature(
signature: impl Into<Signature>
) -> Result<Signature, VariantError>
[src]
signature: impl Into<Signature>
) -> Result<Signature, VariantError>
fn slice_signature(
signature: impl Into<Signature>
) -> Result<Signature, VariantError>
[src]
signature: impl Into<Signature>
) -> Result<Signature, VariantError>
fn slice_for_decoding(
data: impl Into<SharedData>,
signature: impl Into<Signature>,
format: EncodingFormat
) -> Result<SharedData, VariantError>
[src]
data: impl Into<SharedData>,
signature: impl Into<Signature>,
format: EncodingFormat
) -> Result<SharedData, VariantError>
impl Deref for Signature
[src]
impl Encode for Signature
[src]
const SIGNATURE_CHAR: char
[src]
const SIGNATURE_STR: &'static str
[src]
const ALIGNMENT: usize
[src]
fn encode_into(&self, bytes: &mut Vec<u8>, _format: EncodingFormat)
[src]
fn to_variant(self) -> Variant
[src]
fn is(variant: &Variant) -> bool
[src]
fn encode(&self, format: EncodingFormat) -> Vec<u8>
[src]
fn signature(&self) -> Signature
[src]
fn add_padding(bytes: &mut Vec<u8>, format: EncodingFormat)
[src]
fn padding(n_bytes_before: usize, _format: EncodingFormat) -> usize
[src]
impl Eq for Signature
[src]
impl<'_> From<&'_ str> for Signature
[src]
impl From<String> for Signature
[src]
impl Hash for Signature
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_> PartialEq<&'_ str> for Signature
[src]
impl PartialEq<Signature> for Signature
[src]
impl SimpleDecode for Signature
[src]
fn slice_data_simple(
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<SharedData, VariantError> where
Self: Sized,
[src]
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<SharedData, VariantError> where
Self: Sized,
fn decode_simple(
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<Self, VariantError> where
Self: Sized,
[src]
data: impl Into<SharedData>,
format: EncodingFormat
) -> Result<Self, VariantError> where
Self: Sized,
impl StructuralEq for Signature
[src]
impl StructuralPartialEq for Signature
[src]
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,