pub struct ChunkId(_);
Implementations§
source§impl ChunkId
impl ChunkId
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn obj_type_code(&self) -> Option<ObjectTypeCode>
pub fn object_id(&self) -> ObjectId
pub fn as_object_id(&self) -> &ObjectId
pub fn to_string(&self) -> String
pub fn to_base36(&self) -> String
pub fn from_base58(s: &str) -> BuckyResult<Self>
pub fn from_base36(s: &str) -> BuckyResult<Self>
pub async fn calculate(data: &[u8]) -> BuckyResult<Self>
pub fn calculate_sync(data: &[u8]) -> BuckyResult<Self>
pub fn new(hash_value: &HashValue, len: u32) -> Self
pub fn hash(&self) -> &[u8] ⓘ
pub fn len(&self) -> usize
Trait Implementations§
source§impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkId
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkId
source§impl<'de> Deserialize<'de> for ChunkId
impl<'de> Deserialize<'de> for ChunkId
source§fn deserialize<D>(deserializer: D) -> Result<ChunkId, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ChunkId, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkId
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ChunkId
source§impl ObjectFormat for ChunkId
impl ObjectFormat for ChunkId
fn format_json(&self) -> Value
source§impl Ord for ChunkId
impl Ord for ChunkId
source§impl PartialEq<ChunkId> for ChunkId
impl PartialEq<ChunkId> for ChunkId
source§impl PartialOrd<ChunkId> for ChunkId
impl PartialOrd<ChunkId> for ChunkId
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 more