pub enum TypedAssigns<Seal>where
    Seal: ExposedSeal,{
    Declarative(Confined<Vec<Assign<VoidState, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
    Fungible(Confined<Vec<Assign<RevealedValue, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
    Structured(Confined<Vec<Assign<RevealedData, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
    Attachment(Confined<Vec<Assign<RevealedAttach, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>),
}

Variants§

§

Declarative(Confined<Vec<Assign<VoidState, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)

§

Fungible(Confined<Vec<Assign<RevealedValue, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)

§

Structured(Confined<Vec<Assign<RevealedData, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)

§

Attachment(Confined<Vec<Assign<RevealedAttach, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>)

Implementations§

source§

impl<Seal> TypedAssigns<Seal>where Seal: ExposedSeal,

source

pub fn is_empty(&self) -> bool

source

pub fn len_u16(&self) -> u16

source

pub fn state_type(&self) -> StateType

source

pub fn is_declarative(&self) -> bool

source

pub fn is_fungible(&self) -> bool

source

pub fn is_structured(&self) -> bool

source

pub fn is_attachment(&self) -> bool

source

pub fn as_declarative(&self) -> &[Assign<VoidState, Seal>]

source

pub fn as_fungible(&self) -> &[Assign<RevealedValue, Seal>]

source

pub fn as_structured(&self) -> &[Assign<RevealedData, Seal>]

source

pub fn as_attachment(&self) -> &[Assign<RevealedAttach, Seal>]

source

pub fn as_declarative_mut( &mut self ) -> Option<&mut Confined<Vec<Assign<VoidState, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>

source

pub fn as_fungible_mut( &mut self ) -> Option<&mut Confined<Vec<Assign<RevealedValue, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>

source

pub fn as_structured_mut( &mut self ) -> Option<&mut Confined<Vec<Assign<RevealedData, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>

source

pub fn as_attachment_mut( &mut self ) -> Option<&mut Confined<Vec<Assign<RevealedAttach, Seal>, Global>, amplify::::collection::confinement::SmallVec::{constant#0}, amplify::::collection::confinement::SmallVec::{constant#1}>>

source

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]))

source

pub fn to_confidential_seals(&self) -> Vec<SecretSeal, Global>

source

pub fn as_structured_state_at( &self, index: u16 ) -> Result<Option<&RevealedData>, UnknownDataError>

source

pub fn as_fungible_state_at( &self, index: u16 ) -> Result<Option<&RevealedValue>, UnknownDataError>

source

pub fn into_structured_state_at( self, index: u16 ) -> Result<Option<RevealedData>, UnknownDataError>

source

pub fn into_fungible_state_at( self, index: u16 ) -> Result<Option<RevealedValue>, UnknownDataError>

source§

impl TypedAssigns<BlindSeal<Txid>>

source

pub fn transmutate_seals(&self) -> TypedAssigns<BlindSeal<TxPtr>>

Trait Implementations§

source§

impl<Seal> Clone for TypedAssigns<Seal>where Seal: Clone + ExposedSeal,

source§

fn clone(&self) -> TypedAssigns<Seal>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Seal> CommitStrategy for TypedAssigns<Seal>where Seal: ExposedSeal,

§

type Strategy = Merklize<rgb::::contract::assignments::{impl#12}::Strategy::{constant#0}>

Specific strategy. List of supported strategies: Read more
source§

impl<Seal> Conceal for TypedAssigns<Seal>where Seal: ExposedSeal,

§

type Concealed = TypedAssigns<Seal>

The resulting confidential type concealing original data.
source§

fn conceal(&self) -> <TypedAssigns<Seal> as Conceal>::Concealed

Performs conceal procedure returning confidential data concealing original data.
source§

impl<Seal> Debug for TypedAssigns<Seal>where Seal: Debug + ExposedSeal,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, Seal> Deserialize<'de> for TypedAssigns<Seal>where Seal: ExposedSeal + Serialize + DeserializeOwned,

source§

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,

source§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<Seal: ExposedSeal> MergeReveal for TypedAssigns<Seal>

source§

fn merge_reveal(self, other: Self) -> Result<Self, MergeRevealError>

source§

impl<Seal> MerkleLeaves for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

impl<Seal> Ord for TypedAssigns<Seal>where Seal: Ord + ExposedSeal,

source§

fn cmp(&self, other: &TypedAssigns<Seal>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<Seal> PartialEq<TypedAssigns<Seal>> for TypedAssigns<Seal>where Seal: PartialEq<Seal> + ExposedSeal,

source§

fn eq(&self, other: &TypedAssigns<Seal>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Seal> PartialOrd<TypedAssigns<Seal>> for TypedAssigns<Seal>where Seal: PartialOrd<Seal> + ExposedSeal,

source§

fn partial_cmp(&self, other: &TypedAssigns<Seal>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<Seal> Serialize for TypedAssigns<Seal>where Seal: ExposedSeal + Serialize + DeserializeOwned,

source§

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,

source§

impl<Seal> StrictDumb for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

impl<Seal> StrictEncode for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,

source§

impl<Seal> StrictSum for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

const ALL_VARIANTS: &'static [(u8, &'static str)] = &[(0 as u8, "declarative"), (1 as u8, "fungible"), (2 as u8, "structured"), (255 as u8, "attachment")]

source§

fn variant_name(&self) -> &'static str

source§

fn strict_check_variants()

source§

fn variant_name_by_tag(tag: u8) -> Option<FieldName>

source§

fn variant_ord(&self) -> u8

source§

impl<Seal> StrictType for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB

source§

fn strict_name() -> Option<TypeName>

source§

impl<Seal> StrictUnion for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

impl<Seal: ExposedSeal> TypedAssignsExt<Seal> for TypedAssigns<Seal>

source§

fn reveal_seal(&mut self, seal: Seal)

source§

fn filter_revealed_seals(&self) -> Vec<Seal>

source§

impl<Seal> Eq for TypedAssigns<Seal>where Seal: Eq + ExposedSeal,

source§

impl<Seal> StructuralEq for TypedAssigns<Seal>where Seal: ExposedSeal,

source§

impl<Seal> StructuralPartialEq for TypedAssigns<Seal>where Seal: ExposedSeal,

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> VerifyEq for Twhere T: Eq,

source§

fn verify_eq(&self, other: &T) -> bool

Verifies commit-equivalence of two instances of the same type.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,