pub struct ChunkMapKey { /* private fields */ }Expand description
The key of one file’s chunk map: the file’s content and the path it is at. The path is part of the key because the embedded text includes it.
Implementations§
Source§impl ChunkMapKey
impl ChunkMapKey
pub fn new(content: ContentKey, path: &[u8]) -> Self
pub const fn content(&self) -> ContentKey
Trait Implementations§
Source§impl Clone for ChunkMapKey
impl Clone for ChunkMapKey
impl Copy for ChunkMapKey
Source§impl Debug for ChunkMapKey
impl Debug for ChunkMapKey
impl Eq for ChunkMapKey
Source§impl Hash for ChunkMapKey
impl Hash for ChunkMapKey
Source§impl HeapBytes for ChunkMapKey
impl HeapBytes for ChunkMapKey
Source§fn heap_bytes(&self, _seen: &mut Seen) -> usize
fn heap_bytes(&self, _seen: &mut Seen) -> usize
The bytes this value owns on the heap; an allocation
seen has
already counted adds nothing.Source§impl Ord for ChunkMapKey
impl Ord for ChunkMapKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ChunkMapKey
impl PartialEq for ChunkMapKey
Source§impl PartialOrd for ChunkMapKey
impl PartialOrd for ChunkMapKey
impl StructuralPartialEq for ChunkMapKey
Auto Trait Implementations§
impl Forget for ChunkMapKey
impl Freeze for ChunkMapKey
impl Move for ChunkMapKey
impl RefUnwindSafe for ChunkMapKey
impl Send for ChunkMapKey
impl Sync for ChunkMapKey
impl Unpin for ChunkMapKey
impl UnsafeUnpin for ChunkMapKey
impl UnwindSafe for ChunkMapKey
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