Struct stens::StructType
source · pub struct StructType(_);
Trait Implementations§
source§impl AsMut<<StructType as Wrapper>::Inner> for StructType
impl AsMut<<StructType as Wrapper>::Inner> for StructType
source§impl AsRef<<StructType as Wrapper>::Inner> for StructType
impl AsRef<<StructType as Wrapper>::Inner> for StructType
source§impl Borrow<<StructType as Wrapper>::Inner> for StructType
impl Borrow<<StructType as Wrapper>::Inner> for StructType
source§impl BorrowMut<<StructType as Wrapper>::Inner> for StructType
impl BorrowMut<<StructType as Wrapper>::Inner> for StructType
source§impl Clone for StructType
impl Clone for StructType
source§fn clone(&self) -> StructType
fn clone(&self) -> StructType
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 StructType
impl Debug for StructType
source§impl Deref for StructType
impl Deref for StructType
source§impl DerefMut for StructType
impl DerefMut for StructType
source§impl Display for StructType
impl Display for StructType
source§impl From<StrictVec<StructField, 1>> for StructType
impl From<StrictVec<StructField, 1>> for StructType
source§fn from(v: StrictVec<StructField, 1>) -> Self
fn from(v: StrictVec<StructField, 1>) -> Self
Converts to this type from the input type.
source§impl From<StructType> for StrictVec<StructField, 1>
impl From<StructType> for StrictVec<StructField, 1>
source§fn from(wrapped: StructType) -> Self
fn from(wrapped: StructType) -> Self
Converts to this type from the input type.
source§impl Hash for StructType
impl Hash for StructType
source§impl<'me> IntoIterator for &'me StructType
impl<'me> IntoIterator for &'me StructType
source§impl Ord for StructType
impl Ord for StructType
source§fn cmp(&self, other: &StructType) -> Ordering
fn cmp(&self, other: &StructType) -> 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<StructType> for StructType
impl PartialEq<StructType> for StructType
source§fn eq(&self, other: &StructType) -> bool
fn eq(&self, other: &StructType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StructType> for StructType
impl PartialOrd<StructType> for StructType
source§fn partial_cmp(&self, other: &StructType) -> Option<Ordering>
fn partial_cmp(&self, other: &StructType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StrictDecode for StructType
impl StrictDecode for StructType
source§fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given
std::io::Read
instance; must either
construct an instance or return implementation-specific error type.source§fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed
. Use io::Cursor
over the buffer and
StrictDecode::strict_decode
to avoid such failures.source§fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
Reads data from file at
path
and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed
if file contains remaining
data after the object reconstruction.source§impl StrictEncode for StructType
impl StrictEncode for StructType
source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given
std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.source§fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
Serializes data as a byte array using
StrictEncode::strict_encode
functionsource§impl Verify for StructType
impl Verify for StructType
source§impl Wrapper for StructType
impl Wrapper for StructType
§type Inner = StrictVec<StructField, 1>
type Inner = StrictVec<StructField, 1>
Inner type wrapped by the current newtype
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper
type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type