pub struct ParseCacheKey {
pub hash: u64,
pub len: usize,
}Expand description
A cache key for memoizing parse results by source hash.
Fields§
§hash: u64FNV-1a hash of the source text.
len: usizeLength of the source text in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for ParseCacheKey
impl Clone for ParseCacheKey
Source§fn clone(&self) -> ParseCacheKey
fn clone(&self) -> ParseCacheKey
Returns a duplicate 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 ParseCacheKey
impl Debug for ParseCacheKey
Source§impl Hash for ParseCacheKey
impl Hash for ParseCacheKey
Source§impl PartialEq for ParseCacheKey
impl PartialEq for ParseCacheKey
impl Eq for ParseCacheKey
impl StructuralPartialEq for ParseCacheKey
Auto Trait Implementations§
impl Freeze for ParseCacheKey
impl RefUnwindSafe for ParseCacheKey
impl Send for ParseCacheKey
impl Sync for ParseCacheKey
impl Unpin for ParseCacheKey
impl UnsafeUnpin for ParseCacheKey
impl UnwindSafe for ParseCacheKey
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