pub struct HeaderEncoder<'e>(/* private fields */);Expand description
The encoder for the Header type.
Implementations§
Source§impl<'e> HeaderEncoder<'e>
impl<'e> HeaderEncoder<'e>
Sourcepub fn new(
encoder: Encoder6<VersionEncoder<'e>, BlockHashEncoder<'e>, TxMerkleNodeEncoder<'e>, BlockTimeEncoder<'e>, CompactTargetEncoder<'e>, ArrayEncoder<4>>,
) -> HeaderEncoder<'e>
pub fn new( encoder: Encoder6<VersionEncoder<'e>, BlockHashEncoder<'e>, TxMerkleNodeEncoder<'e>, BlockTimeEncoder<'e>, CompactTargetEncoder<'e>, ArrayEncoder<4>>, ) -> HeaderEncoder<'e>
Construct a new instance of the newtype encoder
Trait Implementations§
Source§impl<'e> Encoder for HeaderEncoder<'e>
impl<'e> Encoder for HeaderEncoder<'e>
Auto Trait Implementations§
impl<'e> Freeze for HeaderEncoder<'e>
impl<'e> RefUnwindSafe for HeaderEncoder<'e>
impl<'e> Send for HeaderEncoder<'e>
impl<'e> Sync for HeaderEncoder<'e>
impl<'e> Unpin for HeaderEncoder<'e>
impl<'e> UnsafeUnpin for HeaderEncoder<'e>
impl<'e> UnwindSafe for HeaderEncoder<'e>
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