referrerpolicy=no-referrer-when-downgrade
pub trait FloatStorageValue: 'static + Clone + Send + Sync {
    type Value: FixedPointNumber;

    // Required method
    fn decode(
        &self,
        maybe_raw_value: Option<StorageData>,
    ) -> Result<Option<Self::Value>, SubstrateError>;
}
Expand description

Fied-point storage value and the way it is decoded from the raw storage value.

Required Associated Types§

source

type Value: FixedPointNumber

Type of the value.

Required Methods§

source

fn decode( &self, maybe_raw_value: Option<StorageData>, ) -> Result<Option<Self::Value>, SubstrateError>

Try to decode value from the raw storage value.

Object Safety§

This trait is not object safe.

Implementors§