pub fn derive_record_id<P: AsRef<Vec<u8>>>(&self, vault_path: P, ctr: usize) -> RecordId {
        let vault_path = vault_path.as_ref();

        let path = if ctr == 0 {
            format!("{:?}{}", vault_path, "first_record")
        } else {
            format!("{:?}{}", vault_path, ctr)
        };

        RecordId::load_from_path(path.as_bytes(), path.as_bytes()).expect(line_error!())
    }
/// Derives the counter [`RecordId`] from the given vault path and the counter value.
Derives the counter [`RecordId`] from the given vault path and the counter value.
Derives the counter [ ` RecordId ` ] from the given vault path and the counter value .
pub fn derive_record_id<P: AsRef<Vec<u8>>>(&self, vault_path: P, ctr: usize) -> RecordId {
        let vault_path = vault_path.as_ref();
        let path = if ctr == 0 {
            format!("{:?}{}", vault_path, "first_record")
        } else {
            format!("{:?}{}", vault_path, ctr)
        };
        RecordId::load_from_path(path.as_bytes(), path.as_bytes()).expect(line_error!())
    }
pub fn derive_record_id < P : AsRef < Vec < u8 > > > ( & self , vault_path : P , ctr : usize ) -> RecordId { let vault_path = vault_path . as_ref ( ) ; let path = if ctr == 0 { format ! ( " " vault_path " " ) } else { format ! ( " " vault_path ctr ) } ; RecordId :: load_from_path ( path . as_bytes ( ) , path . as_bytes ( ) ) . expect ( line_error ! ( ) ) }
Derives the counter [`RecordId`] from the given vault path and the counter value.
Derives the counter [ ` RecordId ` ] from the given vault path and the counter value .
&self
vault_path
P
ctr
usize
&self
vault_path
P
ctr
usize