Trait cashweb::bitcoin::Encodable [−][src]
Provides a common interface for the serialization of bitcoin structures.
Required methods
pub fn encoded_len(&self) -> usize
[src]
Returns the encoded length of the message.
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
Encodes structure to a buffer. This panics if buffer contains insufficient capacity.
Provided methods
pub fn encode<B>(&self, buf: &mut B) -> Result<(), InsufficientCapacity> where
B: BufMut,
[src]
B: BufMut,
Encodes structure to a buffer.
Implementors
impl Encodable for Outpoint
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
impl Encodable for Input
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
impl Encodable for Output
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
impl Encodable for Script
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
impl Encodable for Transaction
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
impl Encodable for VarInt
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,