pub(crate) struct RepeatByte {
pub(crate) byte: u8,
pub(crate) count: u8,
}Expand description
A helper for repeating a single byte utilizing Byte.
This is limited to repeating a byte up to u8::MAX times in order
to reduce its size overhead. And in practice, Jiff just doesn’t
need more than this (at time of writing, 2025-11-29).
Fields§
§byte: u8§count: u8Trait Implementations§
Source§impl Debug for RepeatByte
impl Debug for RepeatByte
Auto Trait Implementations§
impl Freeze for RepeatByte
impl RefUnwindSafe for RepeatByte
impl Send for RepeatByte
impl Sync for RepeatByte
impl Unpin for RepeatByte
impl UnwindSafe for RepeatByte
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