Struct cyfs_bdt::chunk::ChunkListId
source · [−]pub struct ChunkListId(_);Implementations
sourceimpl ChunkListId
impl ChunkListId
pub fn new(ar: GenericArray<u8, U32>) -> Self
pub fn to_string(&self) -> String
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn as_mut_slice(&mut self) -> &mut [u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Trait Implementations
sourceimpl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkListId
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkListId
sourcefn as_ref(&self) -> &GenericArray<u8, U32>
fn as_ref(&self) -> &GenericArray<u8, U32>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChunkListId
impl Clone for ChunkListId
sourcefn clone(&self) -> ChunkListId
fn clone(&self) -> ChunkListId
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 Debug for ChunkListId
impl Debug for ChunkListId
sourceimpl Default for ChunkListId
impl Default for ChunkListId
sourceimpl Display for ChunkListId
impl Display for ChunkListId
sourceimpl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkListId
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkListId
sourcefn from(hash: GenericArray<u8, U32>) -> Self
fn from(hash: GenericArray<u8, U32>) -> Self
Converts to this type from the input type.
sourceimpl FromStr for ChunkListId
impl FromStr for ChunkListId
type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> BuckyResult<Self>
fn from_str(s: &str) -> BuckyResult<Self>
Parses a string s to return a value of this type. Read more
sourceimpl Ord for ChunkListId
impl Ord for ChunkListId
sourceimpl PartialEq<ChunkListId> for ChunkListId
impl PartialEq<ChunkListId> for ChunkListId
sourcefn eq(&self, other: &ChunkListId) -> bool
fn eq(&self, other: &ChunkListId) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ChunkListId) -> bool
fn ne(&self, other: &ChunkListId) -> bool
This method tests for !=.
sourceimpl PartialOrd<ChunkListId> for ChunkListId
impl PartialOrd<ChunkListId> for ChunkListId
sourcefn partial_cmp(&self, other: &ChunkListId) -> Option<Ordering>
fn partial_cmp(&self, other: &ChunkListId) -> 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<'de> RawDecode<'de> for ChunkListId
impl<'de> RawDecode<'de> for ChunkListId
fn raw_decode(buf: &'de [u8]) -> Result<(Self, &'de [u8]), BuckyError>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> Result<(Self, &'de [u8]), BuckyError>
sourceimpl RawEncode for ChunkListId
impl RawEncode for ChunkListId
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(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> Result<&'a [u8], BuckyError>
fn raw_encode_to_buffer(&self) -> Result<Vec<u8, Global>, BuckyError>
fn raw_hash_value(&self) -> Result<HashValue, BuckyError>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> Result<Vec<u8, Global>, BuckyError>
sourceimpl RawFixedBytes for ChunkListId
impl RawFixedBytes for ChunkListId
impl Eq for ChunkListId
impl StructuralEq for ChunkListId
impl StructuralPartialEq for ChunkListId
Auto Trait Implementations
impl RefUnwindSafe for ChunkListId
impl Send for ChunkListId
impl Sync for ChunkListId
impl Unpin for ChunkListId
impl UnwindSafe for ChunkListId
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