Trait ledger_proto::DecodeOwned
pub trait DecodeOwned {
type Output: Debug;
type Error: From<Error> + Debug;
// Required method
fn decode_owned(buff: &[u8]) -> Result<(Self::Output, usize), Self::Error>;
}
Expand description
Decode trait implemented for owned types
This allows eliding lifetime constraints for owned (ie. self-contained, not reference) types and provides a blanket Decode
implementation
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
§impl DecodeOwned for u32
impl DecodeOwned for u32
§impl DecodeOwned for f64
impl DecodeOwned for f64
§impl DecodeOwned for i64
impl DecodeOwned for i64
§impl<T, const N: usize> DecodeOwned for [T; N]where
T: DecodeOwned<Output = T> + Debug + Default + Copy,
<T as DecodeOwned>::Error: From<Error> + Debug,
impl<T, const N: usize> DecodeOwned for [T; N]where T: DecodeOwned<Output = T> + Debug + Default + Copy, <T as DecodeOwned>::Error: From<Error> + Debug,
type Error = <T as DecodeOwned>::Error
type Output = [<T as DecodeOwned>::Output; N]
fn decode_owned( buff: &[u8] ) -> Result<(<[T; N] as DecodeOwned>::Output, usize), <[T; N] as DecodeOwned>::Error>
§impl DecodeOwned for u8
impl DecodeOwned for u8
§impl DecodeOwned for i16
impl DecodeOwned for i16
§impl DecodeOwned for i8
impl DecodeOwned for i8
§impl DecodeOwned for i32
impl DecodeOwned for i32
§impl DecodeOwned for u16
impl DecodeOwned for u16
§impl DecodeOwned for f32
impl DecodeOwned for f32
§impl DecodeOwned for u64
impl DecodeOwned for u64
Implementors§
source§impl DecodeOwned for ApduHeader
impl DecodeOwned for ApduHeader
source§impl DecodeOwned for GenericApdu
impl DecodeOwned for GenericApdu
DecodeOwned implementation for GenericApdu