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 Freeze for IntEncodedWithFixedSize
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
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