Struct massa_serialization::RatioSerializer
source · 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 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>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)