/// Resolves a location to a `VaultId` and a `RecordId`
Resolves a location to a `VaultId` and a `RecordId`
Resolves a location to a ` VaultId ` and a ` RecordId `
pub fn resolve_location<L: AsRef<Location>>(&self, l: L) -> (VaultId, RecordId) {
        match l.as_ref() {
            Location::Generic {
                vault_path,
                record_path,
            } => {
                let vid = self.derive_vault_id(vault_path);
                let rid = RecordId::load_from_path(vid.as_ref(), record_path).expect(line_error!(""));
                (vid, rid)
            }
            Location::Counter { vault_path, counter } => {
                let vid = self.derive_vault_id(vault_path);
                let rid = self.derive_record_id(vault_path, *counter);
                (vid, rid)
            }
        }
    }
pub fn resolve_location < L : AsRef < Location > > ( & self , l : L ) -> ( VaultId , RecordId ) { match l . as_ref ( ) { Location :: Generic { vault_path , record_path , } => { let vid = self . derive_vault_id ( vault_path ) ; let rid = RecordId :: load_from_path ( vid . as_ref ( ) , record_path ) . expect ( line_error ! ( " " ) ) ; ( vid , rid ) } Location :: Counter { vault_path , counter } => { let vid = self . derive_vault_id ( vault_path ) ; let rid = self . derive_record_id ( vault_path , * counter ) ; ( vid , rid ) } } }
Resolves a location to a `VaultId` and a `RecordId`
Resolves a location to a ` VaultId ` and a ` RecordId `
&self
l
L