enum UrlSafe {}Expand description
The URL_SAFE alphabet family (-/_ at 62/63).
Trait Implementations§
Source§impl SimdAlphabet for UrlSafe
Available on x86-64 or AArch64 only.
impl SimdAlphabet for UrlSafe
Available on x86-64 or AArch64 only.
Source§const ENCODE_LUT: [i8; 16]
const ENCODE_LUT: [i8; 16]
pshufb encode table: maps a reduced 6-bit index to
ascii - index.Source§const DECODE_SHIFT_LUT: [i8; 16]
const DECODE_SHIFT_LUT: [i8; 16]
pshufb decode table indexed by the high nibble; added to the byte to produce its 6-bit value.
Source§const DECODE_MASK_LUT: [u8; 16]
const DECODE_MASK_LUT: [u8; 16]
pshufb decode table indexed by the low nibble; bit
hi marks (hi, lo) as a valid symbol.Source§const DECODE_FIXUP_CHAR: i8 = 0x5F
const DECODE_FIXUP_CHAR: i8 = 0x5F
The high-
62/63 symbol whose shift needs the fixup below (+/-).Source§const DECODE_FIXUP_SHIFT: i8 = -32
const DECODE_FIXUP_SHIFT: i8 = -32
The shift applied to
DECODE_FIXUP_CHAR.Auto Trait Implementations§
impl Freeze for UrlSafe
impl RefUnwindSafe for UrlSafe
impl Send for UrlSafe
impl Sync for UrlSafe
impl Unpin for UrlSafe
impl UnsafeUnpin for UrlSafe
impl UnwindSafe for UrlSafe
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