Struct massa_serialization::RatioSerializer
source · pub struct RatioSerializer<T, ST>where
T: Integer + Clone,
ST: Serializer<T>,{
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>where
T: Integer + Clone,
ST: Serializer<T>,
impl<T, ST> RatioSerializer<T, ST>where T: Integer + Clone, ST: Serializer<T>,
Trait Implementations§
source§impl<T, ST> Clone for RatioSerializer<T, ST>where
T: Integer + Clone + Clone,
ST: Serializer<T> + Clone,
impl<T, ST> Clone for RatioSerializer<T, ST>where T: Integer + Clone + Clone, ST: Serializer<T> + Clone,
source§fn clone(&self) -> RatioSerializer<T, ST>
fn clone(&self) -> RatioSerializer<T, ST>
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<T, ST> Debug for RatioSerializer<T, ST>where
T: Integer + Clone + Debug,
ST: Serializer<T> + Debug,
impl<T, ST> Debug for RatioSerializer<T, ST>where T: Integer + Clone + Debug, ST: Serializer<T> + Debug,
source§impl<T, ST> Default for RatioSerializer<T, ST>where
T: Integer + Clone + Default,
ST: Serializer<T> + Default,
impl<T, ST> Default for RatioSerializer<T, ST>where T: Integer + Clone + Default, ST: Serializer<T> + Default,
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>where
T: Integer + Clone,
ST: Serializer<T>,
impl<T, ST> Serializer<Ratio<T>> for RatioSerializer<T, ST>where T: Integer + Clone, ST: Serializer<T>,
Auto Trait Implementations§
impl<T, ST> RefUnwindSafe for RatioSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,
impl<T, ST> Send for RatioSerializer<T, ST>where ST: Send, T: Send,
impl<T, ST> Sync for RatioSerializer<T, ST>where ST: Sync, T: Sync,
impl<T, ST> Unpin for RatioSerializer<T, ST>where ST: Unpin, T: Unpin,
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