pub trait Indexable {
    type Index;

    fn get_index(&self) -> Self::Index;
    fn replace(&mut self, from: &Self::Index, with: &[u8]) -> bool;
}

Required Associated Types§

Required Methods§

Returns an index-like mark that may be used for future operations at the current buffer-end

Replaces the data following from with the contents of with.

This is an exact size operation, to avoid invalidating other marks that may have been made.

Implementors§