#[repr(transparent)]pub struct Aligned8(u64);
Expand description
Internal helper struct that performs operations on aligned integers. Supports strings up to 8 bytes long.
Tuple Fields§
§0: u64
Implementations§
source§impl Aligned8
impl Aligned8
sourcepub const fn from_bytes<const N: usize>(src: &[u8; N]) -> Self
pub const fn from_bytes<const N: usize>(src: &[u8; N]) -> Self
§Panics
Panics if N is greater than 8
pub const fn from_ascii_bytes<const N: usize>(src: &[AsciiByte; N]) -> Self
pub const fn to_bytes(&self) -> [u8; 8]
pub const fn to_ascii_bytes(&self) -> [AsciiByte; 8]
pub const fn len(&self) -> usize
pub const fn is_ascii_alphabetic(&self) -> bool
pub const fn is_ascii_alphanumeric(&self) -> bool
pub const fn is_ascii_numeric(&self) -> bool
pub const fn is_ascii_lowercase(&self) -> bool
pub const fn is_ascii_titlecase(&self) -> bool
pub const fn is_ascii_uppercase(&self) -> bool
pub const fn is_ascii_alphabetic_lowercase(&self) -> bool
pub const fn is_ascii_alphabetic_titlecase(&self) -> bool
pub const fn is_ascii_alphabetic_uppercase(&self) -> bool
pub const fn to_ascii_lowercase(&self) -> Self
pub const fn to_ascii_titlecase(&self) -> Self
pub const fn to_ascii_uppercase(&self) -> Self
Auto Trait Implementations§
impl Freeze for Aligned8
impl RefUnwindSafe for Aligned8
impl Send for Aligned8
impl Sync for Aligned8
impl Unpin for Aligned8
impl UnwindSafe for Aligned8
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