#[repr(transparent)]pub struct QuantizedU8(pub u8);Expand description
Quantized 8-bit unsigned integer.
This type is a 1-byte wrapper to match Numina’s canonical QU8 byte layout. Quantization parameters (scale/zero-point) are treated as external metadata.
Tuple Fields§
§0: u8Implementations§
Trait Implementations§
Source§impl Clone for QuantizedU8
impl Clone for QuantizedU8
Source§fn clone(&self) -> QuantizedU8
fn clone(&self) -> QuantizedU8
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DTypeCandidate for QuantizedU8
impl DTypeCandidate for QuantizedU8
Source§fn size_bytes(&self) -> usize
fn size_bytes(&self) -> usize
Returns the size in bytes of this data type
Source§unsafe fn from_bytes(bytes: &[u8]) -> Self
unsafe fn from_bytes(bytes: &[u8]) -> Self
Convert from raw bytes (used internally) Read more
Source§fn is_signed_int(&self) -> bool
fn is_signed_int(&self) -> bool
Returns true if this is a signed integer type
Source§fn is_unsigned_int(&self) -> bool
fn is_unsigned_int(&self) -> bool
Returns true if this is an unsigned integer type
Source§impl DTypeLike for QuantizedU8
impl DTypeLike for QuantizedU8
Source§impl Debug for QuantizedU8
impl Debug for QuantizedU8
Source§impl Default for QuantizedU8
impl Default for QuantizedU8
Source§fn default() -> QuantizedU8
fn default() -> QuantizedU8
Returns the “default value” for a type. Read more
Source§impl Display for QuantizedU8
impl Display for QuantizedU8
Source§impl From<QuantizedU8> for DType
impl From<QuantizedU8> for DType
Source§fn from(_: QuantizedU8) -> Self
fn from(_: QuantizedU8) -> Self
Converts to this type from the input type.
Source§impl Hash for QuantizedU8
impl Hash for QuantizedU8
Source§impl PartialEq for QuantizedU8
impl PartialEq for QuantizedU8
impl Copy for QuantizedU8
impl Eq for QuantizedU8
impl StructuralPartialEq for QuantizedU8
Auto Trait Implementations§
impl Freeze for QuantizedU8
impl RefUnwindSafe for QuantizedU8
impl Send for QuantizedU8
impl Sync for QuantizedU8
impl Unpin for QuantizedU8
impl UnwindSafe for QuantizedU8
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