#[repr(C)]pub struct RatioU32 {
pub numerator: u32,
pub denominator: u32,
}Expand description
A ratio of unsigned 32-bit numbers.
Fields§
§numerator: u32§denominator: u32Trait Implementations§
Source§impl<'a, ___E> Encode<RatioU32, ___E> for &'a RatioU32where
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<RatioU32, ___E> for &'a RatioU32where
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<RatioU32, ___E> for RatioU32where
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<RatioU32, ___E> for RatioU32where
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, RatioU32>
const COPY_OPTIMIZATION: CopyOptimization<Self, RatioU32>
Source§impl<'a, ___E> EncodeOption<Box<'static, RatioU32>, ___E> for &'a RatioU32
impl<'a, ___E> EncodeOption<Box<'static, RatioU32>, ___E> for &'a RatioU32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, RatioU32>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, RatioU32>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, RatioU32>, ___E> for RatioU32
impl<___E> EncodeOption<Box<'static, RatioU32>, ___E> for RatioU32
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, RatioU32>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, RatioU32>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireRef<RatioU32> for RatioU32
impl FromWireRef<RatioU32> for RatioU32
Source§fn from_wire_ref(wire: &RatioU32) -> Self
fn from_wire_ref(wire: &RatioU32) -> Self
Converts the given reference to this type.
Source§impl Ord for RatioU32
impl Ord for RatioU32
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 RatioU32
impl PartialOrd for RatioU32
impl Copy for RatioU32
impl Eq for RatioU32
impl StructuralPartialEq for RatioU32
Auto Trait Implementations§
impl Freeze for RatioU32
impl RefUnwindSafe for RatioU32
impl Send for RatioU32
impl Sync for RatioU32
impl Unpin for RatioU32
impl UnsafeUnpin for RatioU32
impl UnwindSafe for RatioU32
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]