/// Print an ASCII representation of a 32-bit depgraph to stdout.
Print an ASCII representation of a 32-bit depgraph to stdout.
Print an ASCII representation of a 32 - bit depgraph to stdout .
fn dump_depgraph32(file: &str) -> Result<()> {
    let db = rusqlite::Connection::open(file)?;
    let mut stmt = db.prepare("select * from deptable limit 10")?;
    let mut rows = stmt.query(rusqlite::NO_PARAMS)?;
    let digits = (u32::MAX as f32).log10() as usize + 1;
    while let Some(row) = rows.next()? {
        let key = key_vertex(row)?;
        let dests = value_vertex(row)?;
        for dst in dests {
            println!("  {key:>width$}  {}", dst, key = key, width = digits);
        }
    }
    Ok(())
}
fn dump_depgraph32 ( file : & str ) -> Result < ( ) > { let db = rusqlite :: Connection :: open ( file ) ? ; let mut stmt = db . prepare ( " " ) ? ; let mut rows = stmt . query ( rusqlite :: NO_PARAMS ) ? ; let digits = ( u32 :: MAX as f32 ) . log10 ( ) as usize + 1 ; while let Some ( row ) = rows . next ( ) ? { let key = key_vertex ( row ) ? ; let dests = value_vertex ( row ) ? ; for dst in dests { println ! ( " " dst key key width digits ) ; } } Ok ( ( ) ) }
Print an ASCII representation of a 32-bit depgraph to stdout.
Print an ASCII representation of a 32 - bit depgraph to stdout .
file
&str