Struct storm::ContainerId
source · [−]pub struct ContainerId(_);Expand description
Unique data container identifier
Trait Implementations
sourceimpl AsMut<<ContainerId as Wrapper>::Inner> for ContainerId
impl AsMut<<ContainerId as Wrapper>::Inner> for ContainerId
sourceimpl AsRef<<ContainerId as Wrapper>::Inner> for ContainerId
impl AsRef<<ContainerId as Wrapper>::Inner> for ContainerId
sourceimpl Borrow<<ContainerId as Wrapper>::Inner> for ContainerId
impl Borrow<<ContainerId as Wrapper>::Inner> for ContainerId
sourceimpl BorrowMut<<ContainerId as Wrapper>::Inner> for ContainerId
impl BorrowMut<<ContainerId as Wrapper>::Inner> for ContainerId
sourcefn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl Clone for ContainerId
impl Clone for ContainerId
sourcefn clone(&self) -> ContainerId
fn clone(&self) -> ContainerId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<Msg> CommitVerify<Msg, PrehashedProtocol> for ContainerId where
Msg: AsRef<[u8]>,
impl<Msg> CommitVerify<Msg, PrehashedProtocol> for ContainerId where
Msg: AsRef<[u8]>,
sourceimpl Debug for ContainerId
impl Debug for ContainerId
sourceimpl Default for ContainerId
impl Default for ContainerId
sourcefn default() -> ContainerId
fn default() -> ContainerId
Returns the “default value” for a type. Read more
sourceimpl Deref for ContainerId
impl Deref for ContainerId
sourceimpl DerefMut for ContainerId
impl DerefMut for ContainerId
sourceimpl Display for ContainerId
impl Display for ContainerId
sourceimpl From<ContainerId> for Hash<ContainerIdTag>
impl From<ContainerId> for Hash<ContainerIdTag>
sourcefn from(wrapped: ContainerId) -> Self
fn from(wrapped: ContainerId) -> Self
Converts to this type from the input type.
sourceimpl From<Hash<ContainerIdTag>> for ContainerId
impl From<Hash<ContainerIdTag>> for ContainerId
sourceimpl Hash for ContainerId
impl Hash for ContainerId
sourceimpl Ord for ContainerId
impl Ord for ContainerId
sourceimpl PartialEq<ContainerId> for ContainerId
impl PartialEq<ContainerId> for ContainerId
sourcefn eq(&self, other: &ContainerId) -> bool
fn eq(&self, other: &ContainerId) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ContainerId) -> bool
fn ne(&self, other: &ContainerId) -> bool
This method tests for !=.
sourceimpl PartialOrd<ContainerId> for ContainerId
impl PartialOrd<ContainerId> for ContainerId
sourcefn partial_cmp(&self, other: &ContainerId) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainerId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl StrictDecode for ContainerId
impl StrictDecode for ContainerId
sourcefn 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. Read more
sourcefn 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 Read more
sourceimpl StrictEncode for ContainerId
impl StrictEncode for ContainerId
sourcefn 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. Read more
sourcefn 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
function Read more
sourceimpl Wrapper for ContainerId
impl Wrapper for ContainerId
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
sourcefn 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 Read more
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for ContainerId
impl Eq for ContainerId
impl StructuralEq for ContainerId
impl StructuralPartialEq for ContainerId
Auto Trait Implementations
impl RefUnwindSafe for ContainerId
impl Send for ContainerId
impl Sync for ContainerId
impl Unpin for ContainerId
impl UnwindSafe for ContainerId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, U, T> TaggedHash<'a, T> for U where
U: Wrapper<Inner = Hash<T>>,
T: 'a + Tag,
impl<'a, U, T> TaggedHash<'a, T> for U where
U: Wrapper<Inner = Hash<T>>,
T: 'a + Tag,
sourcefn from_hash<X>(hash: X) -> Self where
X: Hash<Inner = [u8; 32]>,
fn from_hash<X>(hash: X) -> Self where
X: Hash<Inner = [u8; 32]>,
Constructs tagged hash out of other hash type. Read more
sourcefn from_slice(slice: &[u8]) -> Result<Self, Error>
fn from_slice(slice: &[u8]) -> Result<Self, Error>
Constructs tagged hash from byte slice. If slice length is not equal to
32 bytes, fails with Error::InvalidLength (this is just a
wrapper for sha256t::Hash::from_slice). Read more
sourcefn as_slice(&'a self) -> &'a [u8; 32]
fn as_slice(&'a self) -> &'a [u8; 32]
Returns a reference to 32-byte slice array representing internal hash data Read more