pub trait FiniteEncoding: FiniteRepr {
// Required method
fn into_finite<T: FiniteValue>(&self) -> Option<T>;
}
Expand description
Encodes values that implement this trait into values
that implement FiniteValue
(mostly numbers).
Required Methods§
Sourcefn into_finite<T: FiniteValue>(&self) -> Option<T>
fn into_finite<T: FiniteValue>(&self) -> Option<T>
The implementation of this method should be isomorphic
to the implementation of FiniteDecoding::from_finite
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.