[][src]Struct exonum_btc_anchoring::blockchain::data_layout::InputSignatures

pub struct InputSignatures { /* fields omitted */ }

A set of signatures for a transaction input ordered by the validators identifiers.

Methods

impl InputSignatures[src]

pub fn new(validators_count: usize) -> Self[src]

Creates an empty signatures set for the given validators count.

pub fn insert(&mut self, id: ValidatorId, signature: Vec<u8>)[src]

Inserts a signature from the validator with the given identifier.

pub fn contains(&self, id: ValidatorId) -> bool[src]

Checks the existence of a signature from the validator with the given identifier.

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

Returns the total count of signatures.

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

Checks that signatures set is not empty.

Trait Implementations

impl PartialEq<InputSignatures> for InputSignatures[src]

impl Clone for InputSignatures[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl IntoIterator for InputSignatures[src]

type Item = Vec<u8>

The type of the elements being iterated over.

type IntoIter = FilterMap<IntoIter<Option<Vec<u8>>>, fn(_: Option<Vec<u8>>) -> Option<Vec<u8>>>

Which kind of iterator are we turning this into?

impl Debug for InputSignatures[src]

impl Serialize for InputSignatures[src]

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

impl CryptoHash for InputSignatures[src]

impl StorageValue for InputSignatures[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> UniqueHash for T where
    T: CryptoHash, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

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

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