pub struct UnsignedShort(pub u16);Expand description
An unsigned 16-bit integer from 0 through 65,535.
Tuple Fields§
§0: u16The integer value.
Trait Implementations§
Source§impl Clone for UnsignedShort
impl Clone for UnsignedShort
Source§fn clone(&self) -> UnsignedShort
fn clone(&self) -> UnsignedShort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnsignedShort
Source§impl Debug for UnsignedShort
impl Debug for UnsignedShort
Source§impl Default for UnsignedShort
impl Default for UnsignedShort
Source§fn default() -> UnsignedShort
fn default() -> UnsignedShort
Returns the “default value” for a type. Read more
Source§impl EnumRepr for UnsignedShort
impl EnumRepr for UnsignedShort
Source§fn from_discriminant(value: i128) -> Option<Self>
fn from_discriminant(value: i128) -> Option<Self>
Converts a Rust enum discriminant into this wire representation.
Source§fn discriminant(&self) -> i128
fn discriminant(&self) -> i128
Returns this representation as a numeric enum discriminant.
impl Eq for UnsignedShort
Source§impl Hash for UnsignedShort
impl Hash for UnsignedShort
Source§impl PartialEq for UnsignedShort
impl PartialEq for UnsignedShort
impl StructuralPartialEq for UnsignedShort
Auto Trait Implementations§
impl Freeze for UnsignedShort
impl RefUnwindSafe for UnsignedShort
impl Send for UnsignedShort
impl Sync for UnsignedShort
impl Unpin for UnsignedShort
impl UnsafeUnpin for UnsignedShort
impl UnwindSafe for UnsignedShort
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.