[−][src]Struct sp_arithmetic::FixedU128
A fixed point number representation in the range.
Fixed Point 128 bits unsigned, range = [0.000000000000000000, 340282366920938463463.374607431768211455]
Implementations
impl FixedU128
[src][−]
pub const fn from_inner(inner: u128) -> Self
[src][−]
const version of FixedPointNumber::from_inner
.
pub fn from_fraction(x: f64) -> Self
[src]
pub fn to_fraction(self) -> f64
[src]
Trait Implementations
impl Add<FixedU128> for FixedU128
[src][+]
impl Bounded for FixedU128
[src][+]
impl CheckedAdd for FixedU128
[src][+]
impl CheckedDiv for FixedU128
[src][+]
impl CheckedMul for FixedU128
[src][+]
impl CheckedSub for FixedU128
[src][+]
impl Clone for FixedU128
[src][+]
impl Copy for FixedU128
[src]
impl Debug for FixedU128
[src][+]
impl Decode for FixedU128
[src][+]
impl Default for FixedU128
[src][+]
impl<'de> Deserialize<'de> for FixedU128
[src][+]
impl Display for FixedU128
[src][+]
impl Div<FixedU128> for FixedU128
[src][+]
impl Encode for FixedU128
[src][+]
impl EncodeLike<FixedU128> for FixedU128
[src]
impl Eq for FixedU128
[src]
impl FixedPointNumber for FixedU128
[src][+]
impl<N: FixedPointOperand, D: FixedPointOperand> From<(N, D)> for FixedU128
[src][+]
impl<P: PerThing> From<P> for FixedU128
[src][+]
impl From<u128> for FixedU128
[src][+]
impl FromStr for FixedU128
[src][+]
impl Mul<FixedU128> for FixedU128
[src][+]
impl Neg for FixedU128
[src][+]
impl Ord for FixedU128
[src][+]
impl PartialEq<FixedU128> for FixedU128
[src][+]
impl PartialOrd<FixedU128> for FixedU128
[src][+]
impl Saturating for FixedU128
[src][+]
impl Serialize for FixedU128
[src][+]
impl StructuralEq for FixedU128
[src]
impl StructuralPartialEq for FixedU128
[src]
impl Sub<FixedU128> for FixedU128
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for FixedU128
impl Send for FixedU128
impl Sync for FixedU128
impl Unpin for FixedU128
impl UnwindSafe for FixedU128
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<S> Codec for S where
S: Encode + Decode,
[src]
S: Encode + Decode,
impl<T, X> Decode for X where
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
[src][+]
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
impl<T> DecodeAll for T where
T: Decode,
[src][+]
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
[src][+]
T: Decode,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, X> Encode for X where
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
[src][+]
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: Encode + ToOwned,
[src]
T: Encode + ToOwned,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> From<T> for T
[src][+]
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> KeyedVec for T where
T: Codec,
[src][+]
T: Codec,
impl<T> SaturatedConversion for T
[src][+]
impl<T> Saturating for T where
T: Clone + PartialOrd<T> + Bounded + Zero + One + CheckedMul + Saturating,
[src][+]
T: Clone + PartialOrd<T> + Bounded + Zero + One + CheckedMul + Saturating,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T, S> UniqueSaturatedFrom<T> for S where
S: TryFrom<T> + Bounded,
[src][+]
S: TryFrom<T> + Bounded,
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
[src][+]
S: TryInto<T>,
T: Bounded,