pub struct OwnedFraction(/* private fields */);
Trait Implementations§
Source§impl Add for OwnedFraction
impl Add for OwnedFraction
Source§impl AddAssign for OwnedFraction
impl AddAssign for OwnedFraction
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl AsMut<<OwnedFraction as Wrapper>::Inner> for OwnedFraction
impl AsMut<<OwnedFraction as Wrapper>::Inner> for OwnedFraction
Source§impl AsRef<u64> for OwnedFraction
impl AsRef<u64> for OwnedFraction
Source§impl Borrow<u64> for OwnedFraction
impl Borrow<u64> for OwnedFraction
Source§impl BorrowMut<<OwnedFraction as Wrapper>::Inner> for OwnedFraction
impl BorrowMut<<OwnedFraction as Wrapper>::Inner> for OwnedFraction
Source§impl Clone for OwnedFraction
impl Clone for OwnedFraction
Source§fn clone(&self) -> OwnedFraction
fn clone(&self) -> OwnedFraction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedFraction
impl Debug for OwnedFraction
Source§impl Default for OwnedFraction
impl Default for OwnedFraction
Source§fn default() -> OwnedFraction
fn default() -> OwnedFraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OwnedFraction
impl<'de> Deserialize<'de> for OwnedFraction
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 Display for OwnedFraction
impl Display for OwnedFraction
Source§impl Div for OwnedFraction
impl Div for OwnedFraction
Source§impl DivAssign for OwnedFraction
impl DivAssign for OwnedFraction
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl From<OwnedFraction> for u64
impl From<OwnedFraction> for u64
Source§fn from(wrapped: OwnedFraction) -> Self
fn from(wrapped: OwnedFraction) -> Self
Converts to this type from the input type.
Source§impl From<u64> for OwnedFraction
impl From<u64> for OwnedFraction
Source§impl FromStr for OwnedFraction
impl FromStr for OwnedFraction
Source§impl Hash for OwnedFraction
impl Hash for OwnedFraction
Source§impl Mul for OwnedFraction
impl Mul for OwnedFraction
Source§impl MulAssign for OwnedFraction
impl MulAssign for OwnedFraction
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Ord for OwnedFraction
impl Ord for OwnedFraction
Source§fn cmp(&self, other: &OwnedFraction) -> Ordering
fn cmp(&self, other: &OwnedFraction) -> Ordering
1.21.0 · 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 PartialEq for OwnedFraction
impl PartialEq for OwnedFraction
Source§impl PartialOrd for OwnedFraction
impl PartialOrd for OwnedFraction
Source§impl Rem for OwnedFraction
impl Rem for OwnedFraction
Source§impl RemAssign for OwnedFraction
impl RemAssign for OwnedFraction
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%=
operation. Read moreSource§impl Serialize for OwnedFraction
impl Serialize for OwnedFraction
Source§impl StrictDecode for OwnedFraction
impl StrictDecode for OwnedFraction
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictEncode for OwnedFraction
impl StrictEncode for OwnedFraction
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictTuple for OwnedFraction
impl StrictTuple for OwnedFraction
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for OwnedFraction
impl StrictType for OwnedFraction
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB21
fn strict_name() -> Option<TypeName>
Source§impl Sub for OwnedFraction
impl Sub for OwnedFraction
Source§impl SubAssign for OwnedFraction
impl SubAssign for OwnedFraction
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreSource§impl Wrapper for OwnedFraction
impl Wrapper for OwnedFraction
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
Source§impl WrapperMut for OwnedFraction
impl WrapperMut for OwnedFraction
Source§fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Copy for OwnedFraction
impl Eq for OwnedFraction
impl StrictProduct for OwnedFraction
impl StructuralPartialEq for OwnedFraction
Auto Trait Implementations§
impl Freeze for OwnedFraction
impl RefUnwindSafe for OwnedFraction
impl Send for OwnedFraction
impl Sync for OwnedFraction
impl Unpin for OwnedFraction
impl UnwindSafe for OwnedFraction
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
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.