pub enum TypedAssigns<Seal>where
Seal: ExposedSeal,{
Declarative(Confined<Vec<Assign<VoidState, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
Fungible(Confined<Vec<Assign<RevealedValue, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
Structured(Confined<Vec<Assign<RevealedData, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
Attachment(Confined<Vec<Assign<RevealedAttach, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
}
Variants§
Declarative(Confined<Vec<Assign<VoidState, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)
Fungible(Confined<Vec<Assign<RevealedValue, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)
Structured(Confined<Vec<Assign<RevealedData, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)
Attachment(Confined<Vec<Assign<RevealedAttach, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)
Implementations§
Source§impl<Seal> TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> TypedAssigns<Seal>where
Seal: ExposedSeal,
pub fn is_empty(&self) -> bool
pub fn len_u16(&self) -> u16
pub fn state_type(&self) -> StateType
pub fn is_declarative(&self) -> bool
pub fn is_fungible(&self) -> bool
pub fn is_structured(&self) -> bool
pub fn is_attachment(&self) -> bool
pub fn as_declarative(&self) -> &[Assign<VoidState, Seal>]
pub fn as_fungible(&self) -> &[Assign<RevealedValue, Seal>]
pub fn as_structured(&self) -> &[Assign<RevealedData, Seal>]
pub fn as_attachment(&self) -> &[Assign<RevealedAttach, Seal>]
pub fn as_declarative_mut( &mut self, ) -> Option<&mut Confined<Vec<Assign<VoidState, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>
pub fn as_fungible_mut( &mut self, ) -> Option<&mut Confined<Vec<Assign<RevealedValue, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>
pub fn as_structured_mut( &mut self, ) -> Option<&mut Confined<Vec<Assign<RevealedData, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>
pub fn as_attachment_mut( &mut self, ) -> Option<&mut Confined<Vec<Assign<RevealedAttach, Seal>>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>
Sourcepub fn revealed_seal_at(
&self,
index: u16,
) -> Result<Option<Seal>, UnknownDataError>
pub fn revealed_seal_at( &self, index: u16, ) -> Result<Option<Seal>, UnknownDataError>
If seal definition does not exist, returns UnknownDataError
. If the
seal is confidential, returns Ok(None)
; otherwise returns revealed
seal data packed as Ok(Some(
[Seal
]))
pub fn to_confidential_seals(&self) -> Vec<SecretSeal>
pub fn as_structured_state_at( &self, index: u16, ) -> Result<Option<&RevealedData>, UnknownDataError>
pub fn as_fungible_state_at( &self, index: u16, ) -> Result<Option<&RevealedValue>, UnknownDataError>
pub fn into_structured_state_at( self, index: u16, ) -> Result<Option<RevealedData>, UnknownDataError>
pub fn into_fungible_state_at( self, index: u16, ) -> Result<Option<RevealedValue>, UnknownDataError>
Source§impl TypedAssigns<BlindSeal<Txid>>
impl TypedAssigns<BlindSeal<Txid>>
pub fn transmutate_seals(&self) -> TypedAssigns<BlindSeal<TxPtr>>
Trait Implementations§
Source§impl<Seal> Clone for TypedAssigns<Seal>where
Seal: Clone + ExposedSeal,
impl<Seal> Clone for TypedAssigns<Seal>where
Seal: Clone + ExposedSeal,
Source§fn clone(&self) -> TypedAssigns<Seal>
fn clone(&self) -> TypedAssigns<Seal>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Seal> CommitStrategy for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> CommitStrategy for TypedAssigns<Seal>where
Seal: ExposedSeal,
Source§impl<Seal> Conceal for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> Conceal for TypedAssigns<Seal>where
Seal: ExposedSeal,
Source§type Concealed = TypedAssigns<Seal>
type Concealed = TypedAssigns<Seal>
The resulting confidential type concealing original data.
Source§impl<Seal> Debug for TypedAssigns<Seal>where
Seal: Debug + ExposedSeal,
impl<Seal> Debug for TypedAssigns<Seal>where
Seal: Debug + ExposedSeal,
Source§impl<'de, Seal> Deserialize<'de> for TypedAssigns<Seal>
impl<'de, Seal> Deserialize<'de> for TypedAssigns<Seal>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypedAssigns<Seal>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypedAssigns<Seal>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Seal> Hash for TypedAssigns<Seal>where
Seal: Hash + ExposedSeal,
impl<Seal> Hash for TypedAssigns<Seal>where
Seal: Hash + ExposedSeal,
Source§impl<Seal: ExposedSeal> MergeReveal for TypedAssigns<Seal>
impl<Seal: ExposedSeal> MergeReveal for TypedAssigns<Seal>
fn merge_reveal(self, other: Self) -> Result<Self, MergeRevealError>
Source§impl<Seal> MerkleLeaves for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> MerkleLeaves for TypedAssigns<Seal>where
Seal: ExposedSeal,
type Leaf = MerkleNode
type LeafIter<'tmp> = IntoIter<MerkleNode> where TypedAssigns<Seal>: 'tmp
fn merkle_leaves(&self) -> <TypedAssigns<Seal> as MerkleLeaves>::LeafIter<'_>
Source§impl<Seal> Ord for TypedAssigns<Seal>where
Seal: Ord + ExposedSeal,
impl<Seal> Ord for TypedAssigns<Seal>where
Seal: Ord + ExposedSeal,
Source§fn cmp(&self, other: &TypedAssigns<Seal>) -> Ordering
fn cmp(&self, other: &TypedAssigns<Seal>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Seal> PartialEq for TypedAssigns<Seal>where
Seal: PartialEq + ExposedSeal,
impl<Seal> PartialEq for TypedAssigns<Seal>where
Seal: PartialEq + ExposedSeal,
Source§impl<Seal> PartialOrd for TypedAssigns<Seal>where
Seal: PartialOrd + ExposedSeal,
impl<Seal> PartialOrd for TypedAssigns<Seal>where
Seal: PartialOrd + ExposedSeal,
Source§impl<Seal> Serialize for TypedAssigns<Seal>
impl<Seal> Serialize for TypedAssigns<Seal>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<Seal> StrictDecode for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictDecode for TypedAssigns<Seal>where
Seal: ExposedSeal,
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<TypedAssigns<Seal>, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl<Seal> StrictDumb for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictDumb for TypedAssigns<Seal>where
Seal: ExposedSeal,
fn strict_dumb() -> TypedAssigns<Seal>
Source§impl<Seal> StrictEncode for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictEncode for TypedAssigns<Seal>where
Seal: ExposedSeal,
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl<Seal> StrictSum for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictSum for TypedAssigns<Seal>where
Seal: ExposedSeal,
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
Source§impl<Seal> StrictType for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictType for TypedAssigns<Seal>where
Seal: ExposedSeal,
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
Source§impl<Seal> StrictUnion for TypedAssigns<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictUnion for TypedAssigns<Seal>where
Seal: ExposedSeal,
fn strict_type_info() -> TypeInfo<Self>
Source§impl<Seal: ExposedSeal> TypedAssignsExt<Seal> for TypedAssigns<Seal>
impl<Seal: ExposedSeal> TypedAssignsExt<Seal> for TypedAssigns<Seal>
fn reveal_seal(&mut self, seal: Seal)
fn filter_revealed_seals(&self) -> Vec<Seal>
impl<Seal> Eq for TypedAssigns<Seal>where
Seal: Eq + ExposedSeal,
impl<Seal> StructuralPartialEq for TypedAssigns<Seal>where
Seal: ExposedSeal,
Auto Trait Implementations§
impl<Seal> Freeze for TypedAssigns<Seal>
impl<Seal> RefUnwindSafe for TypedAssigns<Seal>where
Seal: RefUnwindSafe,
impl<Seal> Send for TypedAssigns<Seal>where
Seal: Send,
impl<Seal> Sync for TypedAssigns<Seal>where
Seal: Sync,
impl<Seal> Unpin for TypedAssigns<Seal>where
Seal: Unpin,
impl<Seal> UnwindSafe for TypedAssigns<Seal>where
Seal: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.