Struct rgbstd::contract::TransitionBundle
source · pub struct TransitionBundle(_);
Implementations§
Trait Implementations§
source§impl AsMut<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
impl AsMut<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
source§impl AsRef<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
impl AsRef<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
source§impl Borrow<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
impl Borrow<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
source§impl BorrowMut<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
impl BorrowMut<<TransitionBundle as Wrapper>::Inner> for TransitionBundle
source§fn borrow_mut(&mut self) -> &mut <TransitionBundle as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <TransitionBundle as Wrapper>::Inner
Mutably borrows from an owned value. Read more
source§impl BundleExt for TransitionBundle
impl BundleExt for TransitionBundle
source§fn reveal_seal(&mut self, seal: GraphSeal)
fn reveal_seal(&mut self, seal: GraphSeal)
Ensures that the seal is revealed inside the bundle.
source§fn reveal_transition(
&mut self,
transition: &Transition
) -> Result<bool, RevealError>
fn reveal_transition( &mut self, transition: &Transition ) -> Result<bool, RevealError>
Ensures that the transition is revealed inside the bundle. Read more
source§impl Clone for TransitionBundle
impl Clone for TransitionBundle
source§fn clone(&self) -> TransitionBundle
fn clone(&self) -> TransitionBundle
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 CommitStrategy for TransitionBundle
impl CommitStrategy for TransitionBundle
§type Strategy = ConcealStrict
type Strategy = ConcealStrict
Specific strategy. List of supported strategies: Read more
source§impl CommitmentId for TransitionBundle
impl CommitmentId for TransitionBundle
source§impl Conceal for TransitionBundle
impl Conceal for TransitionBundle
§type Concealed = TransitionBundle
type Concealed = TransitionBundle
The resulting confidential type concealing original data.
source§impl Debug for TransitionBundle
impl Debug for TransitionBundle
source§impl Deref for TransitionBundle
impl Deref for TransitionBundle
source§impl DerefMut for TransitionBundle
impl DerefMut for TransitionBundle
source§impl<'de> Deserialize<'de> for TransitionBundle
impl<'de> Deserialize<'de> for TransitionBundle
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransitionBundle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TransitionBundle, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>> for TransitionBundle
impl From<Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>> for TransitionBundle
source§fn from(
v: Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
) -> TransitionBundle
fn from( v: Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}> ) -> TransitionBundle
Converts to this type from the input type.
source§impl From<TransitionBundle> for Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
impl From<TransitionBundle> for Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
source§fn from(
wrapped: TransitionBundle
) -> Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
fn from( wrapped: TransitionBundle ) -> Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
Converts to this type from the input type.
source§impl MergeReveal for TransitionBundle
impl MergeReveal for TransitionBundle
fn merge_reveal(self, other: Self) -> Result<Self, MergeRevealError>
source§impl PartialEq<TransitionBundle> for TransitionBundle
impl PartialEq<TransitionBundle> for TransitionBundle
source§fn eq(&self, other: &TransitionBundle) -> bool
fn eq(&self, other: &TransitionBundle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransitionBundle
impl Serialize for TransitionBundle
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 StrictDecode for TransitionBundle
impl StrictDecode for TransitionBundle
fn strict_decode( reader: &mut impl TypedRead ) -> Result<TransitionBundle, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for TransitionBundle
impl StrictDumb for TransitionBundle
fn strict_dumb() -> TransitionBundle
source§impl StrictEncode for TransitionBundle
impl StrictEncode for TransitionBundle
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 StrictTuple for TransitionBundle
impl StrictTuple for TransitionBundle
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for TransitionBundle
impl StrictType for TransitionBundle
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl Wrapper for TransitionBundle
impl Wrapper for TransitionBundle
§type Inner = Confined<BTreeMap<OpId, BundleItem, Global>, amplify::::collection::confinement::TinyOrdMap::{constant#0}, amplify::::collection::confinement::TinyOrdMap::{constant#1}>
type Inner = Confined<BTreeMap<OpId, BundleItem, 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: <TransitionBundle as Wrapper>::Inner) -> TransitionBundle
fn from_inner(inner: <TransitionBundle as Wrapper>::Inner) -> TransitionBundle
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<TransitionBundle as Wrapper>::Inner
fn as_inner(&self) -> &<TransitionBundle as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <TransitionBundle as Wrapper>::Inner
fn into_inner(self) -> <TransitionBundle as Wrapper>::Inner
Unwraps the wrapper returning the inner type
source§impl WrapperMut for TransitionBundle
impl WrapperMut for TransitionBundle
source§fn as_inner_mut(&mut self) -> &mut <TransitionBundle as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <TransitionBundle as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Eq for TransitionBundle
impl StrictProduct for TransitionBundle
impl StructuralEq for TransitionBundle
impl StructuralPartialEq for TransitionBundle
Auto Trait Implementations§
impl RefUnwindSafe for TransitionBundle
impl Send for TransitionBundle
impl Sync for TransitionBundle
impl Unpin for TransitionBundle
impl UnwindSafe for TransitionBundle
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> CommitEncode for Twhere
T: CommitStrategy,
Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
impl<T> CommitEncode for Twhere T: CommitStrategy, Holder<&'a T, <T as CommitStrategy>::Strategy>: for<'a> CommitEncode,
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<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.