#[repr(C)]pub struct U16(/* private fields */);Implementations§
Trait Implementations§
source§impl AsBytes for U16
impl AsBytes for U16
source§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
source§impl<'a> DecoderValue<'a> for &'a U16
impl<'a> DecoderValue<'a> for &'a U16
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'_, Self>
source§impl<'a> DecoderValue<'a> for U16
impl<'a> DecoderValue<'a> for U16
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'_, Self>
source§impl<'a> DecoderValueMut<'a> for &'a U16
impl<'a> DecoderValueMut<'a> for &'a U16
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
source§impl<'a> DecoderValueMut<'a> for &'a mut U16
impl<'a> DecoderValueMut<'a> for &'a mut U16
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
source§impl<'a> DecoderValueMut<'a> for U16
impl<'a> DecoderValueMut<'a> for U16
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'_, Self>
source§impl<'a> EncoderValue for &'a U16
impl<'a> EncoderValue for &'a U16
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>(
&self,
encoder: &mut E
)
fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>( &self, encoder: &mut E )
Encodes the value into the encoder with a prefix of
Lenfn encode_to_vec(&self) -> Vec<u8>
source§impl<'a> EncoderValue for &'a mut U16
impl<'a> EncoderValue for &'a mut U16
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>(
&self,
encoder: &mut E
)
fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>( &self, encoder: &mut E )
Encodes the value into the encoder with a prefix of
Lenfn encode_to_vec(&self) -> Vec<u8>
source§impl EncoderValue for U16
impl EncoderValue for U16
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
fn encode_mut<E: Encoder>(&mut self, encoder: &mut E)
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>(
&self,
encoder: &mut E
)
fn encode_with_len_prefix<Len: TryFrom<usize> + EncoderValue, E: Encoder>( &self, encoder: &mut E )
Encodes the value into the encoder with a prefix of
Lenfn encode_to_vec(&self) -> Vec<u8>
source§impl FromBytes for U16
impl FromBytes for U16
source§impl Ord for U16
impl Ord for U16
source§impl PartialEq for U16
impl PartialEq for U16
source§impl PartialOrd<u16> for U16
impl PartialOrd<u16> for U16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd for U16
impl PartialOrd for U16
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for U16
impl Eq for U16
impl StructuralEq for U16
impl Unaligned for U16
Auto Trait Implementations§
impl RefUnwindSafe for U16
impl Send for U16
impl Sync for U16
impl Unpin for U16
impl UnwindSafe for U16
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