pub fn new_with<F: FnOnce() -> T, P: Into<PathBuf>>(default: F, path: P) -> Result<Self> {
        let ret = Self {
            last_modified: RefCell::new(SystemTime::UNIX_EPOCH),
            path: path.into().into_boxed_path(),
            inner: RefCell::new(default()),
        };
        ret.check_load().map(|()| ret)
    }
/// Make a new instance using a custom default function
Make a new instance using a custom default function
Make a new instance using a custom default function
pub fn new_with<F: FnOnce() -> T, P: Into<PathBuf>>(default: F, path: P) -> Result<Self> {
        let ret = Self {
            last_modified: RefCell::new(SystemTime::UNIX_EPOCH),
            path: path.into().into_boxed_path(),
            inner: RefCell::new(default()),
        };
        ret.check_load().map(|()| ret)
    }
pub fn new_with < F : FnOnce ( ) -> T , P : Into < PathBuf > > ( default : F , path : P ) -> Result < Self > { let ret = Self { last_modified : RefCell :: new ( SystemTime :: UNIX_EPOCH ) , path : path . into ( ) . into_boxed_path ( ) , inner : RefCell :: new ( default ( ) ) , } ; ret . check_load ( ) . map ( | ( ) | ret ) }
Make a new instance using a custom default function
Make a new instance using a custom default function
default
F
path
P