pub struct ChunkDescriptor {
pub source_bytes: Range<u64>,
}
Expand description
Metadata for loading in a ChunkData
.
Fields§
§source_bytes: Range<u64>
The range of bytes in the chunk data portion of the database this sprite chunk can be loaded from.
Trait Implementations§
Source§impl Clone for ChunkDescriptor
impl Clone for ChunkDescriptor
Source§fn clone(&self) -> ChunkDescriptor
fn clone(&self) -> ChunkDescriptor
Returns a copy of the value. Read more
1.0.0 · 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 ChunkDescriptor
impl Debug for ChunkDescriptor
Source§impl Deserialize for ChunkDescriptor
impl Deserialize for ChunkDescriptor
Source§const SERIALIZED_SIZE: usize = 16usize
const SERIALIZED_SIZE: usize = 16usize
The length of the buffer passed into
Deserialize::deserialize
.Source§fn deserialize(src: &[u8]) -> Self
fn deserialize(src: &[u8]) -> Self
Deserializes the byte buffer into the struct. The length of
src
must
match the same type’s Deserialize::SERIALIZED_SIZE
constant.Source§impl Serialize for ChunkDescriptor
impl Serialize for ChunkDescriptor
Source§const SERIALIZED_SIZE: usize = 16usize
const SERIALIZED_SIZE: usize = 16usize
The length of the buffer passed into
Serialize::serialize
.Source§fn serialize(&self, dst: &mut [u8])
fn serialize(&self, dst: &mut [u8])
Serializes the struct into the byte buffer. The length of
dst
must
match the same type’s Serialize::SERIALIZED_SIZE
constant.Auto Trait Implementations§
impl Freeze for ChunkDescriptor
impl RefUnwindSafe for ChunkDescriptor
impl Send for ChunkDescriptor
impl Sync for ChunkDescriptor
impl Unpin for ChunkDescriptor
impl UnwindSafe for ChunkDescriptor
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