Struct zvariant::Dict [−][src]
pub struct Dict<'k, 'v> { /* fields omitted */ }
Expand description
Implementations
Create a new empty Dict
, given the signature of the keys and values.
Append key
and value
as a new entry.
Errors
- if
key.value_signature()
doesn’t match the key signatureself
was created for. - if
value.value_signature()
doesn’t match the value signatureself
was created for.
Add a new entry.
Get the value for the given key.
Get the signature of this Dict
.
NB: This method potentially allocates and copies. Use full_signature
if you’d like to
avoid that.
Get the signature of this Dict
.
Trait Implementations
Auto Trait Implementations
impl<'k, 'v> RefUnwindSafe for Dict<'k, 'v>
impl<'k, 'v> UnwindSafe for Dict<'k, 'v>
Blanket Implementations
Mutably borrows from an owned value. Read more