pub struct ObjectId(_);
Implementations
sourceimpl ObjectId
impl ObjectId
pub fn obj_type_code(&self) -> ObjectTypeCode
pub fn info(&self) -> ObjectIdInfo
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 new(inner: GenericArray<u8, U32>) -> Self
pub fn clone_from_slice(slice: &[u8]) -> Self
pub fn to_string(&self) -> String
pub fn to_hash_value(&self) -> HashValue
pub fn from_base58(s: &str) -> BuckyResult<Self>
pub fn to_base36(&self) -> String
pub fn from_base36(s: &str) -> BuckyResult<Self>
pub fn object_category(&self) -> ObjectCategory
pub fn is_stand_object(&self) -> bool
pub fn is_core_object(&self) -> bool
pub fn is_dec_app_object(&self) -> bool
pub fn distance_of(&self, other: &Self) -> ObjectIdDistance
pub fn as_chunk_id(&self) -> &ChunkId
Trait Implementations
sourceimpl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
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<T: ObjectType> AsRef<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> AsRef<ObjectId> for NamedObjectId<T>
sourceimpl<'de> Deserialize<'de> for ObjectId
impl<'de> Deserialize<'de> for ObjectId
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for ObjectId
sourcefn from(hash: GenericArray<u8, U32>) -> Self
fn from(hash: GenericArray<u8, U32>) -> Self
Converts to this type from the input type.
sourceimpl From<ObjectId> for SetIteratorPostion
impl From<ObjectId> for SetIteratorPostion
sourceimpl From<SetIteratorPostion> for ObjectId
impl From<SetIteratorPostion> for ObjectId
sourcefn from(value: SetIteratorPostion) -> Self
fn from(value: SetIteratorPostion) -> Self
Converts to this type from the input type.
sourceimpl<T: ObjectType> Into<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> Into<ObjectId> for NamedObjectId<T>
sourceimpl IntoObjectMapContentItem for ObjectId
impl IntoObjectMapContentItem for ObjectId
fn into_content(self, key: Option<&str>) -> ObjectMapContentItem
sourceimpl Ord for ObjectId
impl Ord for ObjectId
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialEq<NamedObjectId<T>> for ObjectId
impl<T: ObjectType> PartialEq<NamedObjectId<T>> for ObjectId
sourcefn eq(&self, other: &NamedObjectId<T>) -> bool
fn eq(&self, other: &NamedObjectId<T>) -> bool
sourceimpl<T: ObjectType> PartialEq<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> PartialEq<ObjectId> for NamedObjectId<T>
sourceimpl PartialOrd<ObjectId> for ObjectId
impl PartialOrd<ObjectId> for ObjectId
sourcefn partial_cmp(&self, other: &ObjectId) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectId) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl ProtobufTransform<&ObjectId> for Vec<u8>
impl ProtobufTransform<&ObjectId> for Vec<u8>
fn transform(value: &ObjectId) -> BuckyResult<Self>
sourceimpl ProtobufTransform<ObjectId> for Vec<u8>
impl ProtobufTransform<ObjectId> for Vec<u8>
fn transform(value: ObjectId) -> BuckyResult<Self>
sourceimpl ProtobufTransform<Vec<u8, Global>> for ObjectId
impl ProtobufTransform<Vec<u8, Global>> for ObjectId
fn transform(value: Vec<u8>) -> BuckyResult<Self>
sourceimpl<'de> RawDecode<'de> for ObjectId
impl<'de> RawDecode<'de> for ObjectId
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 RawDiff for ObjectId
impl RawDiff for ObjectId
fn diff_measure(&self, right: &Self) -> BuckyResult<usize>
fn diff<'d>(&self, right: &Self, buf: &'d mut [u8]) -> BuckyResult<&'d mut [u8]>
sourceimpl RawEncode for ObjectId
impl RawEncode for ObjectId
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 ObjectId
impl RawFixedBytes for ObjectId
sourceimpl<'de> RawPatch<'de> for ObjectId
impl<'de> RawPatch<'de> for ObjectId
fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
sourceimpl<T: ObjectType> TryFrom<&ObjectId> for NamedObjectId<T>
impl<T: ObjectType> TryFrom<&ObjectId> for NamedObjectId<T>
sourceimpl<T: ObjectType> TryFrom<ObjectId> for NamedObjectId<T>
impl<T: ObjectType> TryFrom<ObjectId> for NamedObjectId<T>
impl Copy for ObjectId
impl Eq for ObjectId
impl StructuralEq for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnwindSafe for ObjectId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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