Skip to main content

FfsStringStorage

Trait FfsStringStorage 

Source
pub trait FfsStringStorage {
    // Required methods
    fn arena_for(&self, file: &FileItem) -> ArenaPtr;
    fn base_arena(&self) -> ArenaPtr;
    fn overflow_arena(&self) -> ArenaPtr;
}
Expand description

Different sources of the string storage used by ffs implements as a deduplicated 16-bytes alined heap can be stored in RAM or on disk

Required Methods§

Source

fn arena_for(&self, file: &FileItem) -> ArenaPtr

Resolve the arena for a FileItem (handles base vs overflow split).

Source

fn base_arena(&self) -> ArenaPtr

The base arena (scan-time paths).

Source

fn overflow_arena(&self) -> ArenaPtr

The overflow arena (paths added after the last full scan).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§