pub struct Details(/* private fields */);Implementations§
Methods from Deref<Target = Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#164}::Target::{constant#0}>>§
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.
Trait Implementations§
Source§impl AsRef<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#162}::{constant#0}>> for Details
impl AsRef<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#162}::{constant#0}>> for Details
Source§impl Borrow<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#163}::{constant#0}>> for Details
impl Borrow<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#163}::{constant#0}>> for Details
Source§impl<'de> Deserialize<'de> for Details
impl<'de> Deserialize<'de> for Details
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Details, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Details, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#173}::{constant#0}>> for Details
impl From<Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#173}::{constant#0}>> for Details
Source§impl From<Details> for Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#161}::{constant#0}>
impl From<Details> for Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#161}::{constant#0}>
Source§impl Ord for Details
impl Ord for Details
Source§impl PartialOrd for Details
impl PartialOrd for Details
Source§impl Serialize for Details
impl Serialize for Details
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 Details
impl StrictDecode for Details
fn strict_decode(reader: &mut impl TypedRead) -> Result<Details, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for Details
impl StrictDeserialize for Details
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictDumb for Details
impl StrictDumb for Details
fn strict_dumb() -> Details
Source§impl StrictEncode for Details
impl StrictEncode for Details
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSerialize for Details
impl StrictSerialize for Details
fn strict_serialized_len<const MAX: usize>(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictTuple for Details
impl StrictTuple for Details
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for Details
impl StrictType for Details
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_CONTRACT
fn strict_name() -> Option<TypeName>
Source§impl Wrapper for Details
impl Wrapper for Details
Source§type Inner = Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#160}::Inner::{constant#0}>
type Inner = Confined<String, amplify::::collection::confinement::NonEmptyString::{constant#0}, rgbstd::::stl::specs::{impl#160}::Inner::{constant#0}>
Inner type wrapped by the current newtype
Source§fn from_inner(inner: <Details as Wrapper>::Inner) -> Details
fn from_inner(inner: <Details as Wrapper>::Inner) -> Details
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<Details as Wrapper>::Inner
fn as_inner(&self) -> &<Details as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <Details as Wrapper>::Inner
fn into_inner(self) -> <Details as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Eq for Details
impl StrictProduct for Details
impl StructuralPartialEq for Details
Auto Trait Implementations§
impl Freeze for Details
impl RefUnwindSafe for Details
impl Send for Details
impl Sync for Details
impl Unpin for Details
impl UnwindSafe for Details
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.