pub struct IndexedFilter { /* private fields */ }Expand description
A compact block filter with associated height.
Implementations§
Source§impl IndexedFilter
impl IndexedFilter
Sourcepub fn block_hash(&self) -> BlockHash
pub fn block_hash(&self) -> BlockHash
Return the BlockHash associated with this filer
Sourcepub fn contains_any<'a>(
&'a self,
scripts: impl Iterator<Item = &'a ScriptBuf>,
) -> bool
pub fn contains_any<'a>( &'a self, scripts: impl Iterator<Item = &'a ScriptBuf>, ) -> bool
Does the filter contain a positive match for any of the provided scripts
Sourcepub fn block_filter(self) -> BlockFilter
pub fn block_filter(self) -> BlockFilter
Consume the index and get underlying block filter.
Sourcepub fn into_contents(self) -> Vec<u8> ⓘ
pub fn into_contents(self) -> Vec<u8> ⓘ
Consume the filter and get the raw bytes
Trait Implementations§
Source§impl Clone for IndexedFilter
impl Clone for IndexedFilter
Source§fn clone(&self) -> IndexedFilter
fn clone(&self) -> IndexedFilter
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 IndexedFilter
impl Debug for IndexedFilter
Source§impl Ord for IndexedFilter
impl Ord for IndexedFilter
Source§impl PartialEq for IndexedFilter
impl PartialEq for IndexedFilter
Source§impl PartialOrd for IndexedFilter
impl PartialOrd for IndexedFilter
impl Eq for IndexedFilter
impl StructuralPartialEq for IndexedFilter
Auto Trait Implementations§
impl Freeze for IndexedFilter
impl RefUnwindSafe for IndexedFilter
impl Send for IndexedFilter
impl Sync for IndexedFilter
impl Unpin for IndexedFilter
impl UnwindSafe for IndexedFilter
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