pub struct ActorDigestKey {
pub pos: ChunkPos,
}Expand description
Chunk actor digest key used by modern Bedrock entity storage.
Fields§
§pos: ChunkPosChunk whose digest lists actor ids for the chunk.
Implementations§
Source§impl ActorDigestKey
impl ActorDigestKey
Sourcepub fn storage_key(self) -> Bytes
pub fn storage_key(self) -> Bytes
Encodes this digest as digp<x><z>[dimension].
Sourcepub fn from_storage_key(key: &[u8]) -> Option<Self>
pub fn from_storage_key(key: &[u8]) -> Option<Self>
Decodes a digp storage key into a digest key.
Trait Implementations§
Source§impl Clone for ActorDigestKey
impl Clone for ActorDigestKey
Source§fn clone(&self) -> ActorDigestKey
fn clone(&self) -> ActorDigestKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActorDigestKey
impl Debug for ActorDigestKey
Source§impl<'de> Deserialize<'de> for ActorDigestKey
impl<'de> Deserialize<'de> for ActorDigestKey
Source§fn 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
Source§impl Hash for ActorDigestKey
impl Hash for ActorDigestKey
Source§impl PartialEq for ActorDigestKey
impl PartialEq for ActorDigestKey
Source§fn eq(&self, other: &ActorDigestKey) -> bool
fn eq(&self, other: &ActorDigestKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActorDigestKey
impl Serialize for ActorDigestKey
impl Copy for ActorDigestKey
impl Eq for ActorDigestKey
impl StructuralPartialEq for ActorDigestKey
Auto Trait Implementations§
impl Freeze for ActorDigestKey
impl RefUnwindSafe for ActorDigestKey
impl Send for ActorDigestKey
impl Sync for ActorDigestKey
impl Unpin for ActorDigestKey
impl UnsafeUnpin for ActorDigestKey
impl UnwindSafe for ActorDigestKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more