[−][src]Struct bitcoin::util::bip158::BlockFilterWriter
Compiles and writes a block filter
Methods
impl<'a> BlockFilterWriter<'a>
[src]
pub fn new(writer: &'a mut dyn Write, block: &'a Block) -> BlockFilterWriter<'a>
[src]
Create a block filter writer
pub fn add_output_scripts(&mut self)
[src]
Add output scripts of the block - excluding OP_RETURN scripts
pub fn add_input_scripts<M>(&mut self, script_for_coin: M) -> Result<(), Error> where
M: Fn(&OutPoint) -> Result<Script, Error>,
[src]
M: Fn(&OutPoint) -> Result<Script, Error>,
Add consumed output scripts of a block to filter
pub fn add_element(&mut self, data: &[u8])
[src]
Add arbitrary element to a filter
pub fn finish(&mut self) -> Result<usize, Error>
[src]
Write block filter
Auto Trait Implementations
impl<'a> Unpin for BlockFilterWriter<'a>
impl<'a> !Sync for BlockFilterWriter<'a>
impl<'a> !Send for BlockFilterWriter<'a>
impl<'a> !UnwindSafe for BlockFilterWriter<'a>
impl<'a> !RefUnwindSafe for BlockFilterWriter<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,