pub struct RegionDigest {
pub name: String,
pub kind: String,
pub current_tokens: usize,
pub max_tokens: usize,
pub entries: Vec<u64>,
}Expand description
Fingerprint of one region: everything diff_context compares except the
entry contents themselves, which are folded into per-entry hashes.
Fields§
§name: StringThe region name.
kind: StringThe region’s stringified kind.
current_tokens: usizeThe region’s token count at digest time.
max_tokens: usizeThe region’s token budget at digest time.
entries: Vec<u64>One hash per entry, in order.
Trait Implementations§
Source§impl Clone for RegionDigest
impl Clone for RegionDigest
Source§fn clone(&self) -> RegionDigest
fn clone(&self) -> RegionDigest
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 RegionDigest
impl Debug for RegionDigest
Source§impl PartialEq for RegionDigest
impl PartialEq for RegionDigest
impl StructuralPartialEq for RegionDigest
Auto Trait Implementations§
impl Freeze for RegionDigest
impl RefUnwindSafe for RegionDigest
impl Send for RegionDigest
impl Sync for RegionDigest
impl Unpin for RegionDigest
impl UnsafeUnpin for RegionDigest
impl UnwindSafe for RegionDigest
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