fn read_strings(value: Option<(CellRef, u32)>) -> Vec<String> {
    value.map(|(import_path, depth)| {
            match (&*import_path, depth) {
                (SafasCell::List(_, _), _) => {
                    import_path.to_vec().unwrap_or_else(|| vec![])
                        .into_iter()
                        .filter_map(|cell| match &*cell {
                            SafasCell::String(path) => Some(path.clone()),
                            _                       => None
                        })
                        .collect()
                }

                _ => vec![]
            }
        }).unwrap_or_else(|| vec![])
}
///
/// Reads a value retrieved using look_up from a set of symbol bindings as a series of strings
///
Reads a value retrieved using look_up from a set of symbol bindings as a series of strings
Reads a value retrieved using look_up from a set of symbol bindings as a series of strings
fn read_strings(value: Option<(CellRef, u32)>) -> Vec<String> {
    value.map(|(import_path, depth)| {
            match (&*import_path, depth) {
                (SafasCell::List(_, _), _) => {
                    import_path.to_vec().unwrap_or_else(|| vec![])
                        .into_iter()
                        .filter_map(|cell| match &*cell {
                            SafasCell::String(path) => Some(path.clone()),
                            _                       => None
                        })
                        .collect()
                }
                _ => vec![]
            }
        }).unwrap_or_else(|| vec![])
}
fn read_strings ( value : Option < ( CellRef , u32 ) > ) -> Vec < String > { value . map ( | ( import_path , depth ) | { match ( & * import_path , depth ) { ( SafasCell :: List ( _ , _ ) , _ ) => { import_path . to_vec ( ) . unwrap_or_else ( | | vec ! [ ] ) . into_iter ( ) . filter_map ( | cell | match & * cell { SafasCell :: String ( path ) => Some ( path . clone ( ) ) , _ => None } ) . collect ( ) } _ => vec ! [ ] } } ) . unwrap_or_else ( | | vec ! [ ] ) }
Reads a value retrieved using look_up from a set of symbol bindings as a series of strings
Reads a value retrieved using look_up from a set of symbol bindings as a series of strings
value
Option<(CellRef, u32)>
value
Option<(CellRef, u32)>