#[repr(C)]pub struct RatioU64 {
pub numerator: u64,
pub denominator: u64,
}Expand description
A ratio of unsigned 64-bit numbers.
Fields§
§numerator: u64§denominator: u64Trait Implementations§
Source§impl<'a, ___E> Encode<RatioU64, ___E> for &'a RatioU64where
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<RatioU64, ___E> for &'a RatioU64where
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<RatioU64, ___E> for RatioU64where
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<RatioU64, ___E> for RatioU64where
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<RatioU64, RatioU64>
const COPY_OPTIMIZATION: CopyOptimization<RatioU64, RatioU64>
Source§impl FromWireRef<RatioU64> for RatioU64
impl FromWireRef<RatioU64> for RatioU64
Source§fn from_wire_ref(wire: &RatioU64) -> RatioU64
fn from_wire_ref(wire: &RatioU64) -> RatioU64
Converts the given reference to this type.
Source§impl Ord for RatioU64
impl Ord for RatioU64
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 RatioU64
impl PartialOrd for RatioU64
impl Copy for RatioU64
impl Eq for RatioU64
impl StructuralPartialEq for RatioU64
Auto Trait Implementations§
impl Freeze for RatioU64
impl RefUnwindSafe for RatioU64
impl Send for RatioU64
impl Sync for RatioU64
impl Unpin for RatioU64
impl UnsafeUnpin for RatioU64
impl UnwindSafe for RatioU64
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]