pub struct Indexed;
Expand description
Encodes and decodes bytes sequences, using an index of offsets.
Trait Implementations§
Source§impl EncodeDecode for Indexed
impl EncodeDecode for Indexed
Source§fn length_in_words<'a, A>(bytes: &A) -> usizewhere
A: AsBytes<'a>,
fn length_in_words<'a, A>(bytes: &A) -> usizewhere
A: AsBytes<'a>,
Encoded length in number of
u64
words required.Source§fn encode<'a, A>(store: &mut Vec<u64>, bytes: &A)where
A: AsBytes<'a>,
fn encode<'a, A>(store: &mut Vec<u64>, bytes: &A)where
A: AsBytes<'a>,
Encodes
bytes
into a sequence of u64
.Source§fn write<'a, A, W: Write>(writer: W, bytes: &A) -> Result<()>where
A: AsBytes<'a>,
fn write<'a, A, W: Write>(writer: W, bytes: &A) -> Result<()>where
A: AsBytes<'a>,
Writes
bytes
in the encoded format to an arbitrary writer.Auto Trait Implementations§
impl Freeze for Indexed
impl RefUnwindSafe for Indexed
impl Send for Indexed
impl Sync for Indexed
impl Unpin for Indexed
impl UnwindSafe for Indexed
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