pub struct AmountDecoder(/* private fields */);Expand description
The decoder for the Amount type.
Implementations§
Source§impl AmountDecoder
impl AmountDecoder
Sourcepub const fn new() -> AmountDecoder
pub const fn new() -> AmountDecoder
Constructs a new Amount decoder.
Trait Implementations§
Source§impl Decoder for AmountDecoder
Available on crate feature encoding only.
impl Decoder for AmountDecoder
Available on crate feature
encoding only.Source§type Error = AmountDecoderError
type Error = AmountDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(
&mut self,
bytes: &mut &[u8],
) -> Result<bool, <AmountDecoder as Decoder>::Error>
fn push_bytes( &mut self, bytes: &mut &[u8], ) -> Result<bool, <AmountDecoder as Decoder>::Error>
Push bytes into the decoder, consuming as much as possible. Read more
Source§fn end(
self,
) -> Result<<AmountDecoder as Decoder>::Output, <AmountDecoder as Decoder>::Error>
fn end( self, ) -> Result<<AmountDecoder as Decoder>::Output, <AmountDecoder as Decoder>::Error>
Complete the decoding process and return the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Source§impl Default for AmountDecoder
Available on crate feature encoding only.
impl Default for AmountDecoder
Available on crate feature
encoding only.Source§fn default() -> AmountDecoder
fn default() -> AmountDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AmountDecoder
impl RefUnwindSafe for AmountDecoder
impl Send for AmountDecoder
impl Sync for AmountDecoder
impl Unpin for AmountDecoder
impl UnsafeUnpin for AmountDecoder
impl UnwindSafe for AmountDecoder
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