Struct pact::Unspecified
source · pub struct Unspecified {}Expand description
Placeholder struct for “unspecified” pact data.
Every pact has an Unspecified data type
with ordinal 0. Data of this type is used
as the default data in every pact.
The exact contents of this data are
entirely unspecified; they could be “null”
or empty (the most common case), or could
contain an undocumented sequence of data.
That’s why we call this type Unspecified
instead of something like Null or Void.
Trait Implementations§
source§impl Clone for Unspecified
impl Clone for Unspecified
source§fn clone(&self) -> Unspecified
fn clone(&self) -> Unspecified
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 Debug for Unspecified
impl Debug for Unspecified
source§impl Decodable for Unspecified
impl Decodable for Unspecified
source§fn decode(
&mut self,
_reader: &mut (impl ReadsDecodable + ?Sized),
_header: Option<DataHeader>
) -> Result<(), CodecError>
fn decode( &mut self, _reader: &mut (impl ReadsDecodable + ?Sized), _header: Option<DataHeader> ) -> Result<(), CodecError>
source§fn decode_from(
reader: &mut (impl ReadsDecodable + ?Sized)
) -> Result<Self, CodecError>where
Self: Default,
fn decode_from(
reader: &mut (impl ReadsDecodable + ?Sized)
) -> Result<Self, CodecError>where
Self: Default,
Returns a new, default
Self
decoded from reader.source§impl Default for Unspecified
impl Default for Unspecified
source§fn default() -> Unspecified
fn default() -> Unspecified
Returns the “default value” for a type. Read more
source§impl Encodable for Unspecified
impl Encodable for Unspecified
source§fn encode(
&self,
_writer: &mut (impl WritesEncodable + ?Sized)
) -> Result<(), CodecError>
fn encode( &self, _writer: &mut (impl WritesEncodable + ?Sized) ) -> Result<(), CodecError>
Encodes this thing’s data into
writer.source§fn encode_header(
&self,
writer: &mut (impl WritesEncodable + ?Sized)
) -> Result<(), CodecError>
fn encode_header( &self, writer: &mut (impl WritesEncodable + ?Sized) ) -> Result<(), CodecError>
Encodes the header for this thing’s data
format into
writer. Read moresource§impl PartialEq for Unspecified
impl PartialEq for Unspecified
source§fn eq(&self, other: &Unspecified) -> bool
fn eq(&self, other: &Unspecified) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Unspecified
Auto Trait Implementations§
impl Freeze for Unspecified
impl RefUnwindSafe for Unspecified
impl Send for Unspecified
impl Sync for Unspecified
impl Unpin for Unspecified
impl UnwindSafe for Unspecified
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