Trait GapType

Source
pub trait GapType {
    type Value;

    // Required methods
    fn size(&self) -> usize;
    fn put(&self, buf: &mut [u8], value: Self::Value);
}
Expand description

A type capable of being represented as a gap in a buffer.

Required Associated Types§

Source

type Value

The type of the gap.

Required Methods§

Source

fn size(&self) -> usize

The size of the gap.

Source

fn put(&self, buf: &mut [u8], value: Self::Value)

Insert a value into the provided buffer.

Implementors§