pub struct Long(pub i64);Expand description
A two’s-complement signed 64-bit integer from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.
Tuple Fields§
§0: i64The integer value.
Trait Implementations§
impl Copy for Long
Source§impl EnumRepr for Long
impl EnumRepr for Long
Source§fn from_discriminant(value: i128) -> Option<Self>
fn from_discriminant(value: i128) -> Option<Self>
Converts a Rust enum discriminant into this wire representation.
Source§fn discriminant(&self) -> i128
fn discriminant(&self) -> i128
Returns this representation as a numeric enum discriminant.
impl Eq for Long
impl StructuralPartialEq for Long
Auto Trait Implementations§
impl Freeze for Long
impl RefUnwindSafe for Long
impl Send for Long
impl Sync for Long
impl Unpin for Long
impl UnsafeUnpin for Long
impl UnwindSafe for Long
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> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.