Struct electrscash::util::HeaderList
source · [−]pub struct HeaderList { /* private fields */ }
Implementations
sourceimpl HeaderList
impl HeaderList
pub fn empty() -> HeaderList
pub fn order(&self, new_headers: Vec<BlockHeader>) -> Vec<HeaderEntry>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn apply(&mut self, new_headers: &[HeaderEntry], tip: BlockHash)
pub fn header_by_blockhash(&self, blockhash: &BlockHash) -> Option<&HeaderEntry>
pub fn header_by_height(&self, height: usize) -> Option<&HeaderEntry>
pub fn equals(&self, other: &HeaderList) -> bool
pub fn tiphash(&self) -> BlockHash
pub fn tip(&self) -> Option<HeaderEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, HeaderEntry>
Auto Trait Implementations
impl RefUnwindSafe for HeaderList
impl Send for HeaderList
impl Sync for HeaderList
impl Unpin for HeaderList
impl UnwindSafe for HeaderList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self