pub struct DoubleValue {
pub value: f64,
}Expand description
Wrapper message for double.
The JSON representation for DoubleValue is JSON number.
Fields§
§value: f64The double value.
Trait Implementations§
Source§impl Clone for DoubleValue
impl Clone for DoubleValue
Source§fn clone(&self) -> DoubleValue
fn clone(&self) -> DoubleValue
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 moreSource§impl Debug for DoubleValue
impl Debug for DoubleValue
Source§impl Default for DoubleValue
impl Default for DoubleValue
Source§impl Message for DoubleValue
impl Message for DoubleValue
Source§impl PartialEq for DoubleValue
impl PartialEq for DoubleValue
Source§fn eq(&self, other: &DoubleValue) -> bool
fn eq(&self, other: &DoubleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DoubleValue
Auto Trait Implementations§
impl Freeze for DoubleValue
impl RefUnwindSafe for DoubleValue
impl Send for DoubleValue
impl Sync for DoubleValue
impl Unpin for DoubleValue
impl UnsafeUnpin for DoubleValue
impl UnwindSafe for DoubleValue
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§impl<T> NativeType for T
impl<T> NativeType for T
Source§fn encode_value(&self, dst: &mut BytePages)
fn encode_value(&self, dst: &mut BytePages)
Encode message to the buffer
const TYPE: WireType = const TYPE: WireType = WireType::LengthDelimited;
Source§fn value_len(&self) -> usize
fn value_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Check if value is default
Source§fn encode_type(&self, tag: u32, dst: &mut BytePages)
fn encode_type(&self, tag: u32, dst: &mut BytePages)
Encode field tag and length
Source§fn encoded_len(&self, tag: u32) -> usize
fn encoded_len(&self, tag: u32) -> usize
Protobuf field length
Source§fn serialize(&self, tag: u32, default: DefaultValue<&Self>, dst: &mut BytePages)
fn serialize(&self, tag: u32, default: DefaultValue<&Self>, dst: &mut BytePages)
Serialize protobuf field
Source§fn serialized_len(&self, tag: u32, default: DefaultValue<&Self>) -> usize
fn serialized_len(&self, tag: u32, default: DefaultValue<&Self>) -> usize
Protobuf field length
Source§fn deserialize(
&mut self,
_: u32,
wtype: WireType,
src: &mut Bytes,
) -> Result<(), DecodeError>
fn deserialize( &mut self, _: u32, wtype: WireType, src: &mut Bytes, ) -> Result<(), DecodeError>
Deserialize protobuf field
Source§fn deserialize_default(
tag: u32,
wtype: WireType,
src: &mut Bytes,
) -> Result<Self, DecodeError>
fn deserialize_default( tag: u32, wtype: WireType, src: &mut Bytes, ) -> Result<Self, DecodeError>
Deserialize protobuf field to default value