pub enum CharsTapeAuto<A: Allocator = Global> {
I32(CharsTape<i32, A>),
U32(CharsTape<u32, A>),
U64(CharsTape<u64, A>),
}Expand description
Automatically selects the most memory-efficient CharsTape offset type.
Variants§
Implementations§
Source§impl<A: Allocator> CharsTapeAuto<A>
impl<A: Allocator> CharsTapeAuto<A>
Source§impl<A: Allocator + Clone> CharsTapeAuto<A>
impl<A: Allocator + Clone> CharsTapeAuto<A>
Sourcepub fn from_iter_in<'a, I>(iter: I, allocator: A) -> Self
pub fn from_iter_in<'a, I>(iter: I, allocator: A) -> Self
Creates tape from clonable iterator, auto-selecting offset type (I32/U32/U64) based on total data size. Two-pass: first calculates size, second builds tape.
Trait Implementations§
Source§impl<A: Allocator> Debug for CharsTapeAuto<A>
impl<A: Allocator> Debug for CharsTapeAuto<A>
Source§impl Default for CharsTapeAuto<Global>
impl Default for CharsTapeAuto<Global>
Source§impl<A: Allocator> Hash for CharsTapeAuto<A>
impl<A: Allocator> Hash for CharsTapeAuto<A>
Source§impl<A: Allocator> Ord for CharsTapeAuto<A>
impl<A: Allocator> Ord for CharsTapeAuto<A>
Source§impl<A: Allocator> PartialEq for CharsTapeAuto<A>
impl<A: Allocator> PartialEq for CharsTapeAuto<A>
Source§impl<A: Allocator> PartialOrd for CharsTapeAuto<A>
impl<A: Allocator> PartialOrd for CharsTapeAuto<A>
impl<A: Allocator> Eq for CharsTapeAuto<A>
Auto Trait Implementations§
impl<A> Freeze for CharsTapeAuto<A>where
A: Freeze,
impl<A> RefUnwindSafe for CharsTapeAuto<A>where
A: RefUnwindSafe,
impl<A> Send for CharsTapeAuto<A>where
A: Send,
impl<A> Sync for CharsTapeAuto<A>where
A: Sync,
impl<A> Unpin for CharsTapeAuto<A>where
A: Unpin,
impl<A> UnwindSafe for CharsTapeAuto<A>where
A: UnwindSafe,
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