pub struct RevealedData(/* private fields */);Implementations§
Source§impl RevealedData
impl RevealedData
Methods from Deref<Target = Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>>§
Sourcepub fn as_inner(&self) -> &C
👎Deprecated since 4.7.0: use as_unconfined method
pub fn as_inner(&self) -> &C
Returns inner collection type
Sourcepub fn as_unconfined(&self) -> &C
pub fn as_unconfined(&self) -> &C
Returns reference to the inner collection type.
Sourcepub fn to_inner(&self) -> Cwhere
C: Clone,
👎Deprecated since 4.7.0: use to_unconfined method
pub fn to_inner(&self) -> Cwhere
C: Clone,
Clones inner collection type and returns it
Sourcepub fn to_unconfined(&self) -> Cwhere
C: Clone,
pub fn to_unconfined(&self) -> Cwhere
C: Clone,
Clones inner collection and returns an unconfined version of it.
Sourcepub fn len_u8(&self) -> u8
pub fn len_u8(&self) -> u8
Returns number of elements in the confined collection as u8. The
confinement guarantees that the collection length can’t exceed
u8::MAX.
Sourcepub fn len_u16(&self) -> u16
pub fn len_u16(&self) -> u16
Returns number of elements in the confined collection as u16. The
confinement guarantees that the collection length can’t exceed
u16::MAX.
Sourcepub fn len_u24(&self) -> u24
pub fn len_u24(&self) -> u24
Returns number of elements in the confined collection as u24. The
confinement guarantees that the collection length can’t exceed
u24::MAX.
Trait Implementations§
Source§impl AsRef<[u8]> for RevealedData
impl AsRef<[u8]> for RevealedData
Source§impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
impl AsRef<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
Source§impl Borrow<[u8]> for RevealedData
impl Borrow<[u8]> for RevealedData
Source§impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
impl Borrow<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
Source§impl Clone for RevealedData
impl Clone for RevealedData
Source§fn clone(&self) -> RevealedData
fn clone(&self) -> RevealedData
Returns a duplicate 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 Debug for RevealedData
impl Debug for RevealedData
Source§impl Default for RevealedData
impl Default for RevealedData
Source§fn default() -> RevealedData
fn default() -> RevealedData
Returns the “default value” for a type. Read more
Source§impl Deref for RevealedData
impl Deref for RevealedData
Source§impl<'de> Deserialize<'de> for RevealedData
impl<'de> Deserialize<'de> for RevealedData
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RevealedData, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RevealedData, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RevealedData
impl Display for RevealedData
Source§impl ExposedState for RevealedData
impl ExposedState for RevealedData
fn state_type(&self) -> StateType
fn state_data(&self) -> RevealedState
Source§impl From<Allocation> for RevealedData
impl From<Allocation> for RevealedData
Source§fn from(allocation: Allocation) -> RevealedData
fn from(allocation: Allocation) -> RevealedData
Converts to this type from the input type.
Source§impl From<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
impl From<Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>> for RevealedData
Source§impl From<RevealedData> for AllocatedState
impl From<RevealedData> for AllocatedState
Source§fn from(v: RevealedData) -> AllocatedState
fn from(v: RevealedData) -> AllocatedState
Converts to this type from the input type.
Source§impl From<RevealedData> for Allocation
impl From<RevealedData> for Allocation
Source§fn from(data: RevealedData) -> Allocation
fn from(data: RevealedData) -> Allocation
Converts to this type from the input type.
Source§impl From<RevealedData> for Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>
impl From<RevealedData> for Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>
Source§impl FromHex for RevealedData
impl FromHex for RevealedData
Source§fn from_byte_iter<I>(iter: I) -> Result<RevealedData, Error>
fn from_byte_iter<I>(iter: I) -> Result<RevealedData, Error>
Produce an object from a byte iterator
Source§impl Hash for RevealedData
impl Hash for RevealedData
Source§impl KnownState for RevealedData
impl KnownState for RevealedData
const IS_FUNGIBLE: bool = false
Source§impl LowerHex for RevealedData
impl LowerHex for RevealedData
Source§impl Ord for RevealedData
impl Ord for RevealedData
Source§fn cmp(&self, other: &RevealedData) -> Ordering
fn cmp(&self, other: &RevealedData) -> 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 PartialEq for RevealedData
impl PartialEq for RevealedData
Source§impl PartialOrd for RevealedData
impl PartialOrd for RevealedData
Source§impl Serialize for RevealedData
impl Serialize for RevealedData
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 RevealedData
impl StrictDecode for RevealedData
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<RevealedData, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictEncode for RevealedData
impl StrictEncode for RevealedData
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for RevealedData
impl StrictTuple for RevealedData
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for RevealedData
impl StrictType for RevealedData
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_COMMIT
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for RevealedData
impl UpperHex for RevealedData
Source§impl Wrapper for RevealedData
impl Wrapper for RevealedData
Source§type Inner = Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>
type Inner = Confined<Vec<u8>, amplify::::collection::confinement::SmallBlob::{constant#0}, amplify::::collection::confinement::SmallBlob::{constant#1}>
Inner type wrapped by the current newtype
Source§fn from_inner(inner: <RevealedData as Wrapper>::Inner) -> RevealedData
fn from_inner(inner: <RevealedData as Wrapper>::Inner) -> RevealedData
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<RevealedData as Wrapper>::Inner
fn as_inner(&self) -> &<RevealedData as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <RevealedData as Wrapper>::Inner
fn into_inner(self) -> <RevealedData as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl DefaultBasedStrictDumb for RevealedData
impl Eq for RevealedData
impl StrictProduct for RevealedData
impl StructuralPartialEq for RevealedData
Auto Trait Implementations§
impl Freeze for RevealedData
impl RefUnwindSafe for RevealedData
impl Send for RevealedData
impl Sync for RevealedData
impl Unpin for RevealedData
impl UnwindSafe for RevealedData
Blanket Implementations§
Source§impl<T> Base32Len for T
impl<T> Base32Len for T
Source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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> CheckBase32<Vec<u5>> for T
impl<T> CheckBase32<Vec<u5>> for T
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> StrictDumb for T
impl<T> StrictDumb for T
fn strict_dumb() -> T
Source§impl<T> ToBase32 for T
impl<T> ToBase32 for T
Source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)