pub fn open(root: impl Into<PathBuf>) -> Result<Self, IoError> {
        let async_tree = block_on(AsyncTree::open(root.into()))?;
        let tree = Self { async_tree };

        Ok(tree)
    }
/// Open an existing index tree at the given root path.
///
/// # Errors
///
/// This method can fail if the given path does not exist, or the config
/// file cannot be read.
Open an existing index tree at the given root path.
Open an existing index tree at the given root path .
pub fn open(root: impl Into<PathBuf>) -> Result<Self, IoError> {
        let async_tree = block_on(AsyncTree::open(root.into()))?;
        let tree = Self { async_tree };
        Ok(tree)
    }
pub fn open ( root : impl Into < PathBuf > ) -> Result < Self , IoError > { let async_tree = block_on ( AsyncTree :: open ( root . into ( ) ) ) ? ; let tree = Self { async_tree } ; Ok ( tree ) }
Open an existing index tree at the given root path.
Open an existing index tree at the given root path .
root
impl Into<PathBuf>
errors
This method can fail if the given path does not exist, or the config
file cannot be read.
This method can fail if the given path does not exist or the config file cannot be read .