pub struct VoidState(/* private fields */);
Expand description
Struct using for storing Void (i.e. absent) state
Trait Implementations§
Source§impl CommitStrategy for VoidState
impl CommitStrategy for VoidState
Source§impl ConfidentialState for VoidState
impl ConfidentialState for VoidState
fn state_type(&self) -> StateType
fn state_commitment(&self) -> StateCommitment
Source§impl<'de> Deserialize<'de> for VoidState
impl<'de> Deserialize<'de> for VoidState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VoidState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VoidState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExposedState for VoidState
impl ExposedState for VoidState
type Confidential = VoidState
fn state_type(&self) -> StateType
fn state_data(&self) -> StateData
Source§impl Ord for VoidState
impl Ord for VoidState
Source§impl PartialOrd for VoidState
impl PartialOrd for VoidState
Source§impl Serialize for VoidState
impl Serialize for VoidState
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 VoidState
impl StrictDecode for VoidState
fn strict_decode(reader: &mut impl TypedRead) -> Result<VoidState, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictEncode for VoidState
impl StrictEncode for VoidState
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 VoidState
impl StrictTuple for VoidState
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for VoidState
impl StrictType for VoidState
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Copy for VoidState
impl Eq for VoidState
impl StrictProduct for VoidState
impl StructuralPartialEq for VoidState
Auto Trait Implementations§
impl Freeze for VoidState
impl RefUnwindSafe for VoidState
impl Send for VoidState
impl Sync for VoidState
impl Unpin for VoidState
impl UnwindSafe for VoidState
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<T> CommitEncode for T
impl<T> CommitEncode for T
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> 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.