pub struct UniqueId(_);
Implementations
sourceimpl UniqueId
impl UniqueId
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn as_mut_slice(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn clone_from_slice(slice: &[u8]) -> Self
pub fn create(slice: &[u8]) -> Self
pub fn create_with_hash(src: &[u8]) -> Self
Trait Implementations
sourceimpl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for UniqueId
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for UniqueId
sourcefn as_ref(&self) -> &GenericArray<u8, U16>
fn as_ref(&self) -> &GenericArray<u8, U16>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for UniqueId
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for UniqueId
sourcefn from(hash: GenericArray<u8, U16>) -> Self
fn from(hash: GenericArray<u8, U16>) -> Self
Converts to this type from the input type.
sourceimpl ProtobufTransform<&'_ UniqueId> for Vec<u8>
impl ProtobufTransform<&'_ UniqueId> for Vec<u8>
fn transform(value: &UniqueId) -> BuckyResult<Self>
sourceimpl ProtobufTransform<Vec<u8, Global>> for UniqueId
impl ProtobufTransform<Vec<u8, Global>> for UniqueId
fn transform(value: Vec<u8>) -> BuckyResult<Self>
sourceimpl<'de> RawDecode<'de> for UniqueId
impl<'de> RawDecode<'de> for UniqueId
fn raw_decode(buf: &'de [u8]) -> Result<(Self, &'de [u8]), BuckyError>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for UniqueId
impl RawEncode for UniqueId
fn raw_measure(
&self,
_purpose: &Option<RawEncodePurpose>
) -> Result<usize, BuckyError>
fn raw_encode<'a>(
&self,
buf: &'a mut [u8],
_purpose: &Option<RawEncodePurpose>
) -> Result<&'a mut [u8], BuckyError>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
sourceimpl RawFixedBytes for UniqueId
impl RawFixedBytes for UniqueId
impl Eq for UniqueId
impl StructuralEq for UniqueId
impl StructuralPartialEq for UniqueId
Auto Trait Implementations
impl RefUnwindSafe for UniqueId
impl Send for UniqueId
impl Sync for UniqueId
impl Unpin for UniqueId
impl UnwindSafe for UniqueId
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