struct CodePoint(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl CodePoint
impl CodePoint
sourcefn decode_secret(b: u8) -> Self
fn decode_secret(b: u8) -> Self
Side-channel rules:
- code paths that produce
CodePoint(n)
must not maken
observable via a side channel. - other code paths – whitespace, padding or invalid – need not, these are not considered secret conditions.
fn decode_public(a: u8) -> Self
Trait Implementations§
impl Copy for CodePoint
impl Eq for CodePoint
impl StructuralPartialEq for CodePoint
Auto Trait Implementations§
impl Freeze for CodePoint
impl RefUnwindSafe for CodePoint
impl Send for CodePoint
impl Sync for CodePoint
impl Unpin for CodePoint
impl UnwindSafe for CodePoint
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)