#[repr(transparent)]pub struct Aligned4(u32);
Expand description
Internal helper struct that performs operations on aligned integers. Supports strings up to 4 bytes long.
Tuple Fields§
§0: u32
Implementations§
source§impl Aligned4
impl Aligned4
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 4
pub const fn from_ascii_bytes<const N: usize>(src: &[AsciiByte; N]) -> Self
pub const fn to_bytes(&self) -> [u8; 4]
pub const fn to_ascii_bytes(&self) -> [AsciiByte; 4]
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 Aligned4
impl RefUnwindSafe for Aligned4
impl Send for Aligned4
impl Sync for Aligned4
impl Unpin for Aligned4
impl UnwindSafe for Aligned4
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