[][src]Trait contrail::storage::StorageMode

pub trait StorageMode: Debug + Default {
    fn builder_mut(builder: &mut TrailBuilder) -> &mut MemoryBuilder;
fn memory(trail: &Trail) -> &Memory;
fn memory_mut(trail: &mut Trail) -> &mut Memory; }

Representation of how something is stored on the trail.

Objects can be stored on the trail in backtrackable or non-backtrackable memory, represented by Backtrackable and NonBacktrackable, respectively. Both of these structs implement StorageMode. See the documentation for Trail for the difference between backtrackable and non-backtrackable storage.

Required methods

fn builder_mut(builder: &mut TrailBuilder) -> &mut MemoryBuilder

Returns the associated MemoryBuilder from a TrailBuilder.

fn memory(trail: &Trail) -> &Memory

Returns the associated Memory from a Trail.

fn memory_mut(trail: &mut Trail) -> &mut Memory

Returns the associated Memory from a Trail mutably.

Loading content...

Implementors

impl StorageMode for Backtrackable[src]

impl StorageMode for NonBacktrackable[src]

Loading content...