Trait fuel_core_storage::codec::Decode
source · pub trait Decode<T> {
// Required method
fn decode(bytes: &[u8]) -> Result<T>;
// Provided method
fn decode_from_value(value: Value) -> Result<T> { ... }
}
Expand description
The trait decodes the type from the bytes.
Required Methods§
Provided Methods§
sourcefn decode_from_value(value: Value) -> Result<T>
fn decode_from_value(value: Value) -> Result<T>
Decodes the type T
from the Value
.
Object Safety§
This trait is not object safe.