Crate string_lines [] [src]

Raw persistent database for storing string lines.

string_lines is on [Crates.io][string_lines] and [GitHub][github].

Example

 use string_lines::StringLines;
 let mut lines = StringLines::open(
    "target/push_pop.example"
 ).expect("Unable to open file");
 for i in 1..101 {      
    let line = format!("line {}",i);    
    let _ = lines.push(&line).expect("Unable to push line");
 }
loop {
    match lines.pop().expect("Unable to pop line") {
        Some(line) => {
            println!("{}",line);
        },
        None => {
            break;
        }
    }
}

Structs

StringLines

Raw persistent database for storing string lines.

Enums

Error

Error enum

Type Definitions

Result