pub fn lightning_deserialize<T>(data: impl AsRef<[u8]>) -> Result<T, Error>
where
    T: LightningDecode,
{
    T::lightning_deserialize(data)
}
/// Convenience method for strict decoding of data structures implementing
/// [`LightningDecode`] from any byt data source.
Convenience method for strict decoding of data structures implementing
[`LightningDecode`] from any byt data source.
Convenience method for strict decoding of data structures implementing [ ` LightningDecode ` ] from any byt data source .
pub fn lightning_deserialize<T>(data: impl AsRef<[u8]>) -> Result<T, Error>
where
    T: LightningDecode,
{
    T::lightning_deserialize(data)
}
pub fn lightning_deserialize < T > ( data : impl AsRef < [ u8 ] > ) -> Result < T , Error > where T : LightningDecode , { T :: lightning_deserialize ( data ) }
Convenience method for strict decoding of data structures implementing
[`LightningDecode`] from any byt data source.
Convenience method for strict decoding of data structures implementing [ ` LightningDecode ` ] from any byt data source .
data
impl AsRef<[u8]>
data
impl AsRef<[u8]>