pub struct Indexed<T: Signable> { /* fields omitted */ }
Expand description
A pair consistsing of signable data and a NodeIndex
.
This is a wrapper used for signing data which does not implement the Index
trait.
If a node with an index i
needs to sign some data signable
which does not
implement the Index
trait, it should use the Signed::sign_with_index
method which will
use this wrapper transparently. Note that in the implementation of Signable
for Indexed<T>
,
the hash is the hash of the underlying data T
. Therefore, instances of the type
[Signed<'a, Indexed<T>, MK>
] can be aggregated into Multisigned<'a, T, MK>
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
If possible give a hint of expected size of the encoding. Read more
Convert self to an owned vector.
Convert self to a slice and then invoke the given closure with it.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Return a hash for signing.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Decode Self
and consume all of the given input data. Read more
Decode Self
and consume all of the given input data. Read more
Decode Self
and advance input
by the number of bytes consumed. Read more
Decode Self
with the given maximum recursion depth. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Return an encoding of Self
prepended by given slice.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,