[−][src]Enum lnpbp::rgb::contract::Assignments
Variants
Declarative(Vec<OwnedState<DeclarativeStrategy>>)
DiscreteFiniteField(Vec<OwnedState<PedersenStrategy>>)
CustomData(Vec<OwnedState<HashStrategy>>)
Implementations
impl Assignments
[src]
pub fn zero_balanced(
inputs: Vec<Revealed>,
allocations_ours: Vec<(SealDefinition, AtomicValue)>,
allocations_theirs: Vec<(Confidential, AtomicValue)>
) -> Self
[src]
inputs: Vec<Revealed>,
allocations_ours: Vec<(SealDefinition, AtomicValue)>,
allocations_theirs: Vec<(Confidential, AtomicValue)>
) -> Self
pub fn is_declarative_state(&self) -> bool
[src]
pub fn is_discrete_state(&self) -> bool
[src]
pub fn is_custom_state(&self) -> bool
[src]
pub fn declarative_state_mut(
&mut self
) -> Option<&mut Vec<OwnedState<DeclarativeStrategy>>>
[src]
&mut self
) -> Option<&mut Vec<OwnedState<DeclarativeStrategy>>>
pub fn discrete_state_mut(
&mut self
) -> Option<&mut Vec<OwnedState<PedersenStrategy>>>
[src]
&mut self
) -> Option<&mut Vec<OwnedState<PedersenStrategy>>>
pub fn custom_state_mut(&mut self) -> Option<&mut Vec<OwnedState<HashStrategy>>>
[src]
pub fn to_declarative_state(&self) -> Vec<OwnedState<DeclarativeStrategy>>ⓘ
[src]
pub fn to_discrete_state(&self) -> Vec<OwnedState<PedersenStrategy>>ⓘ
[src]
pub fn to_custom_state(&self) -> Vec<OwnedState<HashStrategy>>ⓘ
[src]
pub fn into_declarative_state(self) -> Vec<OwnedState<DeclarativeStrategy>>ⓘ
[src]
pub fn into_discrete_state(self) -> Vec<OwnedState<PedersenStrategy>>ⓘ
[src]
pub fn into_custom_state(self) -> Vec<OwnedState<HashStrategy>>ⓘ
[src]
pub fn seal_definition(
&self,
index: u16
) -> Result<Option<Revealed>, NoDataError>
[src]
&self,
index: u16
) -> Result<Option<Revealed>, NoDataError>
If seal definition does not exist, returns NoDataError
. If the
seal is confidential, returns Ok(None)
; otherwise returns revealed
seal data packed as Ok(Some(
seal::Revealed
))
pub fn known_seal_definitions(&self) -> Vec<Revealed>ⓘ
[src]
pub fn all_seal_definitions(&self) -> Vec<Confidential>ⓘ
[src]
pub fn known_state_values(&self) -> Vec<&Revealed>ⓘ
[src]
pub fn known_state_data(&self) -> Vec<&Revealed>ⓘ
[src]
pub fn all_state_pedersen(&self) -> Vec<Confidential>ⓘ
[src]
pub fn all_state_hashed(&self) -> Vec<Confidential>ⓘ
[src]
pub fn len(&self) -> usize
[src]
pub fn reveal_seals<'a>(
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
[src]
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
Reveals previously known seal information (replacing blind UTXOs with explicit ones). Function is used when a peer receives consignment containing concealed seals for the outputs owned by the peer
impl Assignments
[src]
pub fn u8(&self) -> Vec<u8>ⓘ
[src]
pub fn u16(&self) -> Vec<u16>ⓘ
[src]
pub fn u32(&self) -> Vec<u32>ⓘ
[src]
pub fn u64(&self) -> Vec<u64>ⓘ
[src]
pub fn i8(&self) -> Vec<i8>ⓘ
[src]
pub fn i16(&self) -> Vec<i16>ⓘ
[src]
pub fn i32(&self) -> Vec<i32>ⓘ
[src]
pub fn i64(&self) -> Vec<i64>ⓘ
[src]
pub fn f32(&self) -> Vec<f32>ⓘ
[src]
pub fn f64(&self) -> Vec<f64>ⓘ
[src]
pub fn bytes(&self) -> Vec<Vec<u8>>ⓘ
[src]
pub fn string(&self) -> Vec<String>ⓘ
[src]
Trait Implementations
impl AutoConceal for Assignments
[src]
fn conceal_except(&mut self, seals: &Vec<Confidential>) -> usize
[src]
fn conceal_all(&mut self) -> usize
[src]
impl Clone for Assignments
[src]
fn clone(&self) -> Assignments
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CommitEncodeWithStrategy for Assignments
[src]
type Strategy = UsingStrict
impl Debug for Assignments
[src]
impl Display for Assignments
[src]
impl Eq for Assignments
[src]
impl PartialEq<Assignments> for Assignments
[src]
fn eq(&self, other: &Assignments) -> bool
[src]
fn ne(&self, other: &Assignments) -> bool
[src]
impl StrictDecode for Assignments
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl StrictEncode for Assignments
[src]
type Error = Error
Implementation-dependent error type
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Self::Error>
[src]
impl StructuralEq for Assignments
[src]
impl StructuralPartialEq for Assignments
[src]
Auto Trait Implementations
impl RefUnwindSafe for Assignments
impl Send for Assignments
impl Sync for Assignments
impl Unpin for Assignments
impl UnwindSafe for Assignments
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,