pub struct UnsignedByte(pub u8);Expand description
An unsigned 8-bit integer from 0 through 255.
Tuple Fields§
§0: u8The integer value.
Trait Implementations§
Source§impl Clone for UnsignedByte
impl Clone for UnsignedByte
Source§fn clone(&self) -> UnsignedByte
fn clone(&self) -> UnsignedByte
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 UnsignedByte
Source§impl Debug for UnsignedByte
impl Debug for UnsignedByte
Source§impl Default for UnsignedByte
impl Default for UnsignedByte
Source§fn default() -> UnsignedByte
fn default() -> UnsignedByte
Returns the “default value” for a type. Read more
Source§impl EnumRepr for UnsignedByte
impl EnumRepr for UnsignedByte
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 UnsignedByte
Source§impl Hash for UnsignedByte
impl Hash for UnsignedByte
Source§impl PartialEq for UnsignedByte
impl PartialEq for UnsignedByte
impl StructuralPartialEq for UnsignedByte
Auto Trait Implementations§
impl Freeze for UnsignedByte
impl RefUnwindSafe for UnsignedByte
impl Send for UnsignedByte
impl Sync for UnsignedByte
impl Unpin for UnsignedByte
impl UnsafeUnpin for UnsignedByte
impl UnwindSafe for UnsignedByte
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.