pub struct RatioSerializer<T, ST>{
pub(crate) data_serializer: ST,
pub(crate) phantom_data: PhantomData<T>,
}Expand description
Serializer for Ratio
Fields§
§data_serializer: ST§phantom_data: PhantomData<T>Implementations§
Source§impl<T, ST> RatioSerializer<T, ST>
impl<T, ST> RatioSerializer<T, ST>
Trait Implementations§
Source§impl<T, ST> Clone for RatioSerializer<T, ST>
impl<T, ST> Clone for RatioSerializer<T, ST>
Source§fn clone(&self) -> RatioSerializer<T, ST>
fn clone(&self) -> RatioSerializer<T, ST>
Returns a duplicate 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<T, ST> Debug for RatioSerializer<T, ST>
impl<T, ST> Debug for RatioSerializer<T, ST>
Source§impl<T, ST> Default for RatioSerializer<T, ST>
impl<T, ST> Default for RatioSerializer<T, ST>
Source§fn default() -> RatioSerializer<T, ST>
fn default() -> RatioSerializer<T, ST>
Returns the “default value” for a type. Read more
Source§impl<T, ST> Serializer<Ratio<T>> for RatioSerializer<T, ST>
impl<T, ST> Serializer<Ratio<T>> for RatioSerializer<T, ST>
Auto Trait Implementations§
impl<T, ST> Freeze for RatioSerializer<T, ST>where
ST: Freeze,
impl<T, ST> RefUnwindSafe for RatioSerializer<T, ST>where
ST: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, ST> Send for RatioSerializer<T, ST>
impl<T, ST> Sync for RatioSerializer<T, ST>
impl<T, ST> Unpin for RatioSerializer<T, ST>
impl<T, ST> UnwindSafe for RatioSerializer<T, ST>where
ST: UnwindSafe,
T: UnwindSafe,
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