pub enum BytesTapeAuto<A: Allocator = Global> {
U16(BytesTape<u16, A>),
U32(BytesTape<u32, A>),
U64(BytesTape<u64, A>),
}Expand description
Automatically selects the most memory-efficient BytesTape offset type.
Variants§
Implementations§
Source§impl<A: Allocator> BytesTapeAuto<A>
impl<A: Allocator> BytesTapeAuto<A>
Source§impl<A: Allocator + Clone> BytesTapeAuto<A>
impl<A: Allocator + Clone> BytesTapeAuto<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 (U16/U32/U64) based on total data size. Two-pass: first calculates size, second builds tape.
Trait Implementations§
Source§impl<A: Allocator> Debug for BytesTapeAuto<A>
impl<A: Allocator> Debug for BytesTapeAuto<A>
Source§impl Default for BytesTapeAuto<Global>
impl Default for BytesTapeAuto<Global>
Source§impl<A: Allocator> Hash for BytesTapeAuto<A>
impl<A: Allocator> Hash for BytesTapeAuto<A>
Source§impl<A: Allocator> Ord for BytesTapeAuto<A>
impl<A: Allocator> Ord for BytesTapeAuto<A>
Source§impl<A: Allocator> PartialEq for BytesTapeAuto<A>
impl<A: Allocator> PartialEq for BytesTapeAuto<A>
Source§impl<A: Allocator> PartialOrd for BytesTapeAuto<A>
impl<A: Allocator> PartialOrd for BytesTapeAuto<A>
impl<A: Allocator> Eq for BytesTapeAuto<A>
Auto Trait Implementations§
impl<A> Freeze for BytesTapeAuto<A>where
A: Freeze,
impl<A> RefUnwindSafe for BytesTapeAuto<A>where
A: RefUnwindSafe,
impl<A> Send for BytesTapeAuto<A>where
A: Send,
impl<A> Sync for BytesTapeAuto<A>where
A: Sync,
impl<A> Unpin for BytesTapeAuto<A>where
A: Unpin,
impl<A> UnwindSafe for BytesTapeAuto<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