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)
source§impl Encodable<MemEncoder> for IntEncodedWithFixedSize
impl Encodable<MemEncoder> for IntEncodedWithFixedSize
fn encode(&self, e: &mut MemEncoder)
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§
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