pub struct AncestorBloom {
bits: [u64; 16],
}Expand description
祖先ブルームフィルタ(WebKit/Blink の ancestor filter と同じ考え方)。
祖先の要素が持つタグ・id・クラスのハッシュを 1024 ビットに落としたもの。子孫セレクタ
(.ytd-watch-flexy .x)の左側に必要な特徴が祖先に無ければ、祖先をたどる照合を省ける。
偽陽性(無いのにあると言う)はあるが偽陰性は無い。
【2026-10-24】YouTube の視聴ページ(約 2,700 要素 × 23,000 規則)のカスケード高速化。
Fields§
§bits: [u64; 16]Implementations§
Trait Implementations§
Source§impl Clone for AncestorBloom
impl Clone for AncestorBloom
impl Copy for AncestorBloom
Source§impl Debug for AncestorBloom
impl Debug for AncestorBloom
Source§impl Default for AncestorBloom
impl Default for AncestorBloom
impl Eq for AncestorBloom
Source§impl PartialEq for AncestorBloom
impl PartialEq for AncestorBloom
impl StructuralPartialEq for AncestorBloom
Auto Trait Implementations§
impl Freeze for AncestorBloom
impl RefUnwindSafe for AncestorBloom
impl Send for AncestorBloom
impl Sync for AncestorBloom
impl Unpin for AncestorBloom
impl UnsafeUnpin for AncestorBloom
impl UnwindSafe for AncestorBloom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.