Struct rgbstd::contract::Assignments
source · pub struct Assignments<Seal>(_)
where
Seal: ExposedSeal;
Implementations§
source§impl Assignments<BlindSeal<Txid>>
impl Assignments<BlindSeal<Txid>>
pub fn transmutate_seals(&self) -> Assignments<BlindSeal<TxPtr>>
Trait Implementations§
source§impl<Seal> AsMut<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> AsMut<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where Seal: ExposedSeal,
source§impl<Seal> AsRef<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> AsRef<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where Seal: ExposedSeal,
source§impl<Seal> Borrow<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> Borrow<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where Seal: ExposedSeal,
source§impl<Seal> BorrowMut<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> BorrowMut<<Assignments<Seal> as Wrapper>::Inner> for Assignments<Seal>where Seal: ExposedSeal,
source§fn borrow_mut(&mut self) -> &mut <Assignments<Seal> as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Assignments<Seal> as Wrapper>::Inner
Mutably borrows from an owned value. Read more
source§impl<Seal> Clone for Assignments<Seal>where
Seal: Clone + ExposedSeal,
impl<Seal> Clone for Assignments<Seal>where Seal: Clone + ExposedSeal,
source§fn clone(&self) -> Assignments<Seal>
fn clone(&self) -> Assignments<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> CommitEncode for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> CommitEncode for Assignments<Seal>where Seal: ExposedSeal,
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instancesource§impl<Seal> Debug for Assignments<Seal>where
Seal: Debug + ExposedSeal,
impl<Seal> Debug for Assignments<Seal>where Seal: Debug + ExposedSeal,
source§impl<Seal> Default for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> Default for Assignments<Seal>where Seal: ExposedSeal,
source§fn default() -> Assignments<Seal>
fn default() -> Assignments<Seal>
Returns the “default value” for a type. Read more
source§impl<Seal> Deref for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> Deref for Assignments<Seal>where Seal: ExposedSeal,
source§impl<Seal> DerefMut for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> DerefMut for Assignments<Seal>where Seal: ExposedSeal,
source§impl<'de, Seal> Deserialize<'de> for Assignments<Seal>where
Seal: ExposedSeal + Serialize + DeserializeOwned,
impl<'de, Seal> Deserialize<'de> for Assignments<Seal>where Seal: ExposedSeal + Serialize + DeserializeOwned,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Assignments<Seal>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Assignments<Seal>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'op> From<&'op Assignments<BlindSeal<TxPtr>>> for AssignmentsRef<'op>
impl<'op> From<&'op Assignments<BlindSeal<TxPtr>>> for AssignmentsRef<'op>
source§fn from(v: &'op Assignments<BlindSeal<TxPtr>>) -> AssignmentsRef<'op>
fn from(v: &'op Assignments<BlindSeal<TxPtr>>) -> AssignmentsRef<'op>
Converts to this type from the input type.
source§impl<'op> From<&'op Assignments<BlindSeal<Txid>>> for AssignmentsRef<'op>
impl<'op> From<&'op Assignments<BlindSeal<Txid>>> for AssignmentsRef<'op>
source§fn from(v: &'op Assignments<BlindSeal<Txid>>) -> AssignmentsRef<'op>
fn from(v: &'op Assignments<BlindSeal<Txid>>) -> AssignmentsRef<'op>
Converts to this type from the input type.
source§impl<Seal> From<Assignments<Seal>> for Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>where
Seal: ExposedSeal,
impl<Seal> From<Assignments<Seal>> for Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>where Seal: ExposedSeal,
source§fn from(
wrapped: Assignments<Seal>
) -> Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
fn from( wrapped: Assignments<Seal> ) -> Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
Converts to this type from the input type.
source§impl<Seal> From<Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>> for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> From<Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>> for Assignments<Seal>where Seal: ExposedSeal,
source§fn from(
v: Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
) -> Assignments<Seal>
fn from( v: Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}> ) -> Assignments<Seal>
Converts to this type from the input type.
source§impl<Seal> Hash for Assignments<Seal>where
Seal: Hash + ExposedSeal,
impl<Seal> Hash for Assignments<Seal>where Seal: Hash + ExposedSeal,
source§impl<Seal: ExposedSeal> MergeReveal for Assignments<Seal>
impl<Seal: ExposedSeal> MergeReveal for Assignments<Seal>
fn merge_reveal(self, other: Self) -> Result<Self, MergeRevealError>
source§impl<Seal> PartialEq<Assignments<Seal>> for Assignments<Seal>where
Seal: PartialEq<Seal> + ExposedSeal,
impl<Seal> PartialEq<Assignments<Seal>> for Assignments<Seal>where Seal: PartialEq<Seal> + ExposedSeal,
source§fn eq(&self, other: &Assignments<Seal>) -> bool
fn eq(&self, other: &Assignments<Seal>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Seal> Serialize for Assignments<Seal>where
Seal: ExposedSeal + Serialize + DeserializeOwned,
impl<Seal> Serialize for Assignments<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,
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 Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictDecode for Assignments<Seal>where Seal: ExposedSeal,
fn strict_decode( reader: &mut impl TypedRead ) -> Result<Assignments<Seal>, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl<Seal> StrictEncode for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictEncode for Assignments<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> StrictTuple for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictTuple for Assignments<Seal>where Seal: ExposedSeal,
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl<Seal> StrictType for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> StrictType for Assignments<Seal>where Seal: ExposedSeal,
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl<Seal> Wrapper for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> Wrapper for Assignments<Seal>where Seal: ExposedSeal,
§type Inner = Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
type Inner = Confined<BTreeMap<u16, TypedAssigns<Seal>, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
Inner type wrapped by the current newtype
source§fn from_inner(inner: <Assignments<Seal> as Wrapper>::Inner) -> Assignments<Seal>
fn from_inner(inner: <Assignments<Seal> as Wrapper>::Inner) -> Assignments<Seal>
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<Assignments<Seal> as Wrapper>::Inner
fn as_inner(&self) -> &<Assignments<Seal> as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <Assignments<Seal> as Wrapper>::Inner
fn into_inner(self) -> <Assignments<Seal> as Wrapper>::Inner
Unwraps the wrapper returning the inner type
source§impl<Seal> WrapperMut for Assignments<Seal>where
Seal: ExposedSeal,
impl<Seal> WrapperMut for Assignments<Seal>where Seal: ExposedSeal,
source§fn as_inner_mut(&mut self) -> &mut <Assignments<Seal> as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <Assignments<Seal> as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl<Seal> Eq for Assignments<Seal>where Seal: Eq + ExposedSeal,
impl<Seal> StrictProduct for Assignments<Seal>where Seal: ExposedSeal,
impl<Seal> StructuralEq for Assignments<Seal>where Seal: ExposedSeal,
impl<Seal> StructuralPartialEq for Assignments<Seal>where Seal: ExposedSeal,
Auto Trait Implementations§
impl<Seal> RefUnwindSafe for Assignments<Seal>where Seal: RefUnwindSafe,
impl<Seal> Send for Assignments<Seal>where Seal: Send,
impl<Seal> Sync for Assignments<Seal>where Seal: Sync,
impl<Seal> Unpin for Assignments<Seal>
impl<Seal> UnwindSafe for Assignments<Seal>where Seal: RefUnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.