#[repr(transparent)]pub struct Percent(pub u8);Tuple Fields§
§0: u8Trait Implementations§
Source§impl AddAssign for Percent
impl AddAssign for Percent
Source§fn add_assign(&mut self, other: Percent)
fn add_assign(&mut self, other: Percent)
Performs the
+= operation. Read moreSource§impl AddAssign<u8> for Percent
impl AddAssign<u8> for Percent
Source§fn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
Performs the
+= operation. Read moreSource§impl CandidType for Percent
impl CandidType for Percent
impl Copy for Percent
Source§impl<'de> Deserialize<'de> for Percent
impl<'de> Deserialize<'de> for Percent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign for Percent
impl DivAssign for Percent
Source§fn div_assign(&mut self, other: Percent)
fn div_assign(&mut self, other: Percent)
Performs the
/= operation. Read moreSource§impl DivAssign<u8> for Percent
impl DivAssign<u8> for Percent
Source§fn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
Performs the
/= operation. Read moreimpl Eq for Percent
Source§impl MulAssign for Percent
impl MulAssign for Percent
Source§fn mul_assign(&mut self, other: Percent)
fn mul_assign(&mut self, other: Percent)
Performs the
*= operation. Read moreSource§impl MulAssign<u8> for Percent
impl MulAssign<u8> for Percent
Source§fn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
Performs the
*= operation. Read moreSource§impl NormalizeAuto for Percent
impl NormalizeAuto for Percent
fn normalize_self(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl NormalizeCustom for Percent
impl NormalizeCustom for Percent
fn normalize_custom(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl NumericValue for Percent
impl NumericValue for Percent
Source§fn try_to_decimal(&self) -> Option<Decimal>
fn try_to_decimal(&self) -> Option<Decimal>
Convert this value into
Decimal for generic numeric handling.Source§fn try_from_decimal(value: Decimal) -> Option<Self>
fn try_from_decimal(value: Decimal) -> Option<Self>
Rebuild the value from
Decimal after generic numeric handling.Source§impl Ord for Percent
impl Ord for Percent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Percent
impl PartialOrd for Percent
Source§impl PartialOrd<Percent> for u8
impl PartialOrd<Percent> for u8
Source§impl PartialOrd<u8> for Percent
impl PartialOrd<u8> for Percent
Source§impl RemAssign for Percent
impl RemAssign for Percent
Source§fn rem_assign(&mut self, other: Percent)
fn rem_assign(&mut self, other: Percent)
Performs the
%= operation. Read moreSource§impl RemAssign<u8> for Percent
impl RemAssign<u8> for Percent
Source§fn rem_assign(&mut self, other: u8)
fn rem_assign(&mut self, other: u8)
Performs the
%= operation. Read moreimpl StructuralPartialEq for Percent
Source§impl SubAssign for Percent
impl SubAssign for Percent
Source§fn sub_assign(&mut self, other: Percent)
fn sub_assign(&mut self, other: Percent)
Performs the
-= operation. Read moreSource§impl SubAssign<u8> for Percent
impl SubAssign<u8> for Percent
Source§fn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
Performs the
-= operation. Read moreSource§impl ValidateAuto for Percent
impl ValidateAuto for Percent
fn validate_self(&self, _ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Percent
impl ValidateCustom for Percent
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Auto Trait Implementations§
impl Freeze for Percent
impl RefUnwindSafe for Percent
impl Send for Percent
impl Sync for Percent
impl Unpin for Percent
impl UnsafeUnpin for Percent
impl UnwindSafe for Percent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Normalize for Twhere
T: NormalizeAuto + NormalizeCustom,
Source§impl<T> NormalizeAndValidate for Twhere
T: Visitable,
impl<T> NormalizeAndValidate for Twhere
T: Visitable,
Source§fn normalize_and_validate(self) -> Result<Self, VisitorError>
fn normalize_and_validate(self) -> Result<Self, VisitorError>
Normalize and then validate this application-owned value. Read more