Expand description
§StringTape
Memory-efficient string and bytes storage compatible with Apache Arrow.
use stringtape::{CharsTapeI32, StringTapeError};
let mut tape = CharsTapeI32::new();
tape.push("hello")?;
tape.push("world")?;
assert_eq!(tape.len(), 2);
assert_eq!(&tape[0], "hello");
// Iterate over strings
for s in &tape {
println!("{}", s);
}It also supports binary data via BytesTape:
use stringtape::{BytesTapeI32, StringTapeError};
let mut tape = BytesTapeI32::new();
tape.push(&[0xde, 0xad, 0xbe, 0xef])?;
tape.push(b"bytes")?;
assert_eq!(&tape[1], b"bytes" as &[u8]);Structs§
- Bytes
Tape - Binary bytes view over
RawTape. - Bytes
Tape View - Binary bytes view over
RawTapeView. - Chars
Tape - UTF-8 string view over
RawTape. - Chars
Tape Iter - Chars
Tape View - UTF-8 string view over
RawTapeView. - RawParts
- Named raw parts returned by
as_raw_partsmethods. - RawTape
View - A view into a continuous slice of a RawTape.
Enums§
- String
Tape Error - Errors that can occur when working with tape classes.
Traits§
- Offset
Type - Trait for offset types used in CharsTape.