Struct ruma_signatures::SignatureSet
[−]
[src]
pub struct SignatureSet { /* fields omitted */ }
A set of digital signatures created by a single homeserver.
Methods
impl SignatureSet
[src]
fn new() -> Self
Initializes a new empty SignatureSet.
fn with_capacity(capacity: usize) -> Self
Initializes a new empty SignatureSet with room for a specific number of signatures.
Parameters
- capacity: The number of items to allocate memory for.
fn insert(&mut self, signature: Signature) -> bool
Adds a signature to the set.
The boolean return value indicates whether or not the value was actually inserted, since subsequent inserts of the same signature have no effect.
Parameters
- signature: A
Signature
to insert into the set.
fn len(&self) -> usize
The number of signatures in the set.
Trait Implementations
impl Clone for SignatureSet
[src]
fn clone(&self) -> SignatureSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SignatureSet
[src]
impl<'de> Deserialize<'de> for SignatureSet
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more