pub struct Length(pub i32);
Tuple Fields§
§0: i32
Trait Implementations§
Source§impl DataType for Length
impl DataType for Length
const META: StructFieldMeta
type BuilderForStruct<'unused> = Length
Source§type BuilderForEncode = Length
type BuilderForEncode = Length
Always a reference
type DecodeLifetime<'a> = Length
fn decode(buf: &mut &[u8]) -> Result<Self, ParseError>
fn encode<'__buffer_lifetime, '__value_lifetime>( buf: &mut BufWriter<'__buffer_lifetime>, value: &'__value_lifetime Self::BuilderForEncode, )
fn encode_usize<'__buffer_lifetime, '__value_lifetime>( buf: &mut BufWriter<'__buffer_lifetime>, value: usize, )
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
impl Copy for Length
impl Eq for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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