pub struct DisplayPrice(/* private fields */);Implementations§
Source§impl DisplayPrice
impl DisplayPrice
Trait Implementations§
Source§impl ByteDeserializeSlice<DisplayPrice> for DisplayPrice
impl ByteDeserializeSlice<DisplayPrice> for DisplayPrice
Source§fn byte_deserialize(
des: &mut ByteDeserializerSlice<'_>,
) -> Result<DisplayPrice, SerDesError>
fn byte_deserialize( des: &mut ByteDeserializerSlice<'_>, ) -> Result<DisplayPrice, SerDesError>
If successful returns a new instance of T type struct, depleting exactly the right amount of bytes from ByteDeserializerSlice
Number of bytes depleted is determined by the struct T itself and its member types.
Source§fn byte_deserialize_take(
des: &mut ByteDeserializerSlice<'_>,
len: usize,
) -> Result<T, SerDesError>
fn byte_deserialize_take( des: &mut ByteDeserializerSlice<'_>, len: usize, ) -> Result<T, SerDesError>
if successful returns a new instance of T type struct, however ONLY depleting a maximum of
len bytes from ByteDeserializerSlice
Intended for types with variable length such as Strings, Vec, etc.
No bytes will be depleted if attempt was not successful.Source§impl ByteSerializeStack for DisplayPrice
impl ByteSerializeStack for DisplayPrice
fn byte_serialize_stack<const CAP: usize>( &self, ser: &mut ByteSerializerStack<CAP>, ) -> Result<(), SerDesError>
Source§impl ByteSerializedLenOf for DisplayPrice
impl ByteSerializedLenOf for DisplayPrice
Source§impl ByteSerializedSizeOf for DisplayPrice
impl ByteSerializedSizeOf for DisplayPrice
Source§impl Clone for DisplayPrice
impl Clone for DisplayPrice
Source§fn clone(&self) -> DisplayPrice
fn clone(&self) -> DisplayPrice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisplayPrice
Source§impl Debug for DisplayPrice
impl Debug for DisplayPrice
Source§impl<'de> Deserialize<'de> for DisplayPrice
impl<'de> Deserialize<'de> for DisplayPrice
Source§fn deserialize<D>(
deserializer: D,
) -> Result<DisplayPrice, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<DisplayPrice, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DisplayPrice
impl Display for DisplayPrice
Source§impl From<DisplayPrice> for TagValueElement<DisplayPrice>
impl From<DisplayPrice> for TagValueElement<DisplayPrice>
Source§fn from(v: DisplayPrice) -> TagValueElement<DisplayPrice>
fn from(v: DisplayPrice) -> TagValueElement<DisplayPrice>
Converts to this type from the input type.
Source§impl From<f32> for DisplayPrice
impl From<f32> for DisplayPrice
Source§fn from(f: f32) -> DisplayPrice
fn from(f: f32) -> DisplayPrice
Converts to this type from the input type.
Source§impl From<u64> for DisplayPrice
impl From<u64> for DisplayPrice
Source§fn from(v: u64) -> DisplayPrice
fn from(v: u64) -> DisplayPrice
Converts to this type from the input type.
Source§impl OptionTag for DisplayPrice
impl OptionTag for DisplayPrice
Source§impl PartialEq for DisplayPrice
impl PartialEq for DisplayPrice
Source§impl Serialize for DisplayPrice
impl Serialize for DisplayPrice
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DisplayPrice
Auto Trait Implementations§
impl Freeze for DisplayPrice
impl RefUnwindSafe for DisplayPrice
impl Send for DisplayPrice
impl Sync for DisplayPrice
impl Unpin for DisplayPrice
impl UnsafeUnpin for DisplayPrice
impl UnwindSafe for DisplayPrice
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