[−][src]Struct exonum_btc_anchoring::blockchain::data_layout::InputSignatures
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]
fn eq(&self, other: &InputSignatures) -> bool
[src]
fn ne(&self, other: &InputSignatures) -> bool
[src]
impl Clone for InputSignatures
[src]
fn clone(&self) -> 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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Debug for InputSignatures
[src]
impl Serialize for InputSignatures
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for InputSignatures
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl CryptoHash for InputSignatures
[src]
impl StorageValue for InputSignatures
[src]
fn into_bytes(self) -> Vec<u8>
[src]
fn from_bytes(value: Cow<[u8]>) -> Self
[src]
Auto Trait Implementations
impl Send for InputSignatures
impl Sync for InputSignatures
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> UniqueHash for T where
T: CryptoHash,
[src]
T: CryptoHash,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,