pub struct PrefixedInt<const BITS: u8>(/* private fields */);Expand description
An HPACK/QPACK integer whose prefix width is fixed by its type.
Every u64 is representable; construction only records the wire format.
Invalid wire widths expose no safe constructor or codec:
ⓘ
use sark_core::http::PrefixedInt;
let _ = PrefixedInt::<0>::new(0);Implementations§
Source§impl<const BITS: u8> PrefixedInt<BITS>where
Self: ValidPrefixedIntWidth,
impl<const BITS: u8> PrefixedInt<BITS>where
Self: ValidPrefixedIntWidth,
Trait Implementations§
Source§impl<const BITS: u8> Clone for PrefixedInt<BITS>
impl<const BITS: u8> Clone for PrefixedInt<BITS>
impl<const BITS: u8> Copy for PrefixedInt<BITS>
Source§impl<const BITS: u8> Debug for PrefixedInt<BITS>
impl<const BITS: u8> Debug for PrefixedInt<BITS>
impl<const BITS: u8> Eq for PrefixedInt<BITS>
Source§impl<const BITS: u8> From<PrefixedInt<BITS>> for u64where
PrefixedInt<BITS>: ValidPrefixedIntWidth,
impl<const BITS: u8> From<PrefixedInt<BITS>> for u64where
PrefixedInt<BITS>: ValidPrefixedIntWidth,
Source§fn from(value: PrefixedInt<BITS>) -> Self
fn from(value: PrefixedInt<BITS>) -> Self
Converts to this type from the input type.
Source§impl<const BITS: u8> Hash for PrefixedInt<BITS>
impl<const BITS: u8> Hash for PrefixedInt<BITS>
Source§impl<const BITS: u8> Ord for PrefixedInt<BITS>
impl<const BITS: u8> Ord for PrefixedInt<BITS>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const BITS: u8> PartialEq for PrefixedInt<BITS>
impl<const BITS: u8> PartialEq for PrefixedInt<BITS>
Source§impl<const BITS: u8> PartialOrd for PrefixedInt<BITS>
impl<const BITS: u8> PartialOrd for PrefixedInt<BITS>
impl<const BITS: u8> StructuralPartialEq for PrefixedInt<BITS>
Auto Trait Implementations§
impl<const BITS: u8> Freeze for PrefixedInt<BITS>
impl<const BITS: u8> RefUnwindSafe for PrefixedInt<BITS>
impl<const BITS: u8> Send for PrefixedInt<BITS>
impl<const BITS: u8> Sync for PrefixedInt<BITS>
impl<const BITS: u8> Unpin for PrefixedInt<BITS>
impl<const BITS: u8> UnsafeUnpin for PrefixedInt<BITS>
impl<const BITS: u8> UnwindSafe for PrefixedInt<BITS>
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