pub fn open_ra(fname: &str) -> Result<Self, String> {
        let mut ptr = cxxbridge::ffi::new_ckmc_file();
        if ptr.pin_mut().open_for_ra(fname) {
            Ok(Self { ptr })
        } else {
            Err(format!("Could not open '{}' for random access", fname))
        }
    }
/// Open in random access mode.
/// The file name `fname` must not include the suffixes `.kmc_pre` or `.kmc_suf`.
/// The file is automatically closed by [Drop].
Open in random access mode.
Open in random access mode .
pub fn open_ra(fname: &str) -> Result<Self, String> {
        let mut ptr = cxxbridge::ffi::new_ckmc_file();
        if ptr.pin_mut().open_for_ra(fname) {
            Ok(Self { ptr })
        } else {
            Err(format!("Could not open '{}' for random access", fname))
        }
    }
pub fn open_ra ( fname : & str ) -> Result < Self , String > { let mut ptr = cxxbridge :: ffi :: new_ckmc_file ( ) ; if ptr . pin_mut ( ) . open_for_ra ( fname ) { Ok ( Self { ptr } ) } else { Err ( format ! ( " " fname ) ) } }
Open in random access mode.
Open in random access mode .
fname
&str
fname
&str