pub struct CacheKeyGen;Expand description
缓存键生成器:BLAKE3 单次哈希 CanonicalForm 得 256-bit 键(无 hex 中间分配)。
Implementations§
Source§impl CacheKeyGen
impl CacheKeyGen
Sourcepub fn hash(cf: &CanonicalForm) -> [u8; 32]
pub fn hash(cf: &CanonicalForm) -> [u8; 32]
生成 256-bit BLAKE3 哈希键(空输入也有定义输出)。
Auto Trait Implementations§
impl Forget for CacheKeyGen
impl Freeze for CacheKeyGen
impl Move for CacheKeyGen
impl RefUnwindSafe for CacheKeyGen
impl Send for CacheKeyGen
impl Sync for CacheKeyGen
impl Unpin for CacheKeyGen
impl UnsafeUnpin for CacheKeyGen
impl UnwindSafe for CacheKeyGen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.