Struct rustc_serialize::opaque::IntEncodedWithFixedSize
source · pub struct IntEncodedWithFixedSize(pub u64);
Expand description
An integer that will always encode to 8 bytes.
Tuple Fields§
§0: u64
Implementations§
source§impl IntEncodedWithFixedSize
impl IntEncodedWithFixedSize
pub const ENCODED_SIZE: usize = 8usize
Trait Implementations§
source§impl<'a> Decodable<MemDecoder<'a>> for IntEncodedWithFixedSize
impl<'a> Decodable<MemDecoder<'a>> for IntEncodedWithFixedSize
fn decode(decoder: &mut MemDecoder<'a>) -> IntEncodedWithFixedSize
source§impl Encodable<FileEncoder> for IntEncodedWithFixedSize
impl Encodable<FileEncoder> for IntEncodedWithFixedSize
fn encode(&self, e: &mut FileEncoder)
Auto Trait Implementations§
impl RefUnwindSafe for IntEncodedWithFixedSize
impl Send for IntEncodedWithFixedSize
impl Sync for IntEncodedWithFixedSize
impl Unpin for IntEncodedWithFixedSize
impl UnwindSafe for IntEncodedWithFixedSize
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes