fn read_amt_cids<DB>(db: &DB, root: &Cid) -> Result<Vec<Cid>, Error>
where
    DB: BlockStore,
{
    let amt = Amt::<Cid, _>::load(root, db)?;

    let mut cids = Vec::new();
    for i in 0..amt.count() {
        if let Some(c) = amt.get(i)? {
            cids.push(*c);
        }
    }

    Ok(cids)
}
/// Returns a vector of cids from provided root cid
Returns a vector of cids from provided root cid
Returns a vector of cids from provided root cid
fn read_amt_cids<DB>(db: &DB, root: &Cid) -> Result<Vec<Cid>, Error>
where
    DB: BlockStore,
{
    let amt = Amt::<Cid, _>::load(root, db)?;
    let mut cids = Vec::new();
    for i in 0..amt.count() {
        if let Some(c) = amt.get(i)? {
            cids.push(*c);
        }
    }
    Ok(cids)
}
fn read_amt_cids < DB > ( db : & DB , root : & Cid ) -> Result < Vec < Cid > , Error > where DB : BlockStore , { let amt = Amt :: < Cid , _ > :: load ( root , db ) ? ; let mut cids = Vec :: new ( ) ; for i in 0 .. amt . count ( ) { if let Some ( c ) = amt . get ( i ) ? { cids . push ( * c ) ; } } Ok ( cids ) }
Returns a vector of cids from provided root cid
Returns a vector of cids from provided root cid
db
&DB
root
&Cid