pub struct Base32<const N: usize> {
pub case: Case,
}Expand description
Fixed-length Base32 name encoding scheme.
Note that padding is not handled, and that N must be a multiple of 5.
Fields§
§case: CaseImplementations§
Trait Implementations§
Source§impl<const N: usize> Scheme for Base32<N>
impl<const N: usize> Scheme for Base32<N>
type Name = [u8; N]
type NameRef<'a> = [u8; N]
fn fixed_length() -> Option<usize>
fn name_to_string<'a>(&self, name: Self::NameRef<'a>) -> Cow<'a, str>
fn cmp_prefix_part(&self, a: &OsStr, b: &OsStr) -> Result<Ordering, Error>
fn name_from_file_stem(&self, file_stem: &OsStr) -> Result<Self::Name, Error>
impl<const N: usize> Copy for Base32<N>
impl<const N: usize> Eq for Base32<N>
impl<const N: usize> StructuralPartialEq for Base32<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Base32<N>
impl<const N: usize> RefUnwindSafe for Base32<N>
impl<const N: usize> Send for Base32<N>
impl<const N: usize> Sync for Base32<N>
impl<const N: usize> Unpin for Base32<N>
impl<const N: usize> UnwindSafe for Base32<N>
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