pub fn document_folder(&self, path: &[LayerId]) -> Result<&Folder, DocumentError> {
		let mut root = &self.root;
		for id in path {
			root = root.folder(*id).ok_or(DocumentError::LayerNotFound)?;
		}
		Ok(root)
	}
/// Returns a reference to the requested folder. Fails if the path does not exist,
/// or if the requested layer is not of type folder.
/// This function does **not** respect mounted folders and will always return the current
/// state of the document, disregarding any temporary modifications.
Returns a reference to the requested folder. Fails if the path does not exist,
or if the requested layer is not of type folder.
This function does **not** respect mounted folders and will always return the current
state of the document, disregarding any temporary modifications.
Returns a reference to the requested folder . Fails if the path does not exist or if the requested layer is not of type folder . This function does ** not ** respect mounted folders and will always return the current state of the document disregarding any temporary modifications .
pub fn document_folder(&self, path: &[LayerId]) -> Result<&Folder, DocumentError> {
		let mut root = &self.root;
		for id in path {
			root = root.folder(*id).ok_or(DocumentError::LayerNotFound)?;
		}
		Ok(root)
	}
pub fn document_folder ( & self , path : & [ LayerId ] ) -> Result < & Folder , DocumentError > { let mut root = & self . root ; for id in path { root = root . folder ( * id ) . ok_or ( DocumentError :: LayerNotFound ) ? ; } Ok ( root ) }
Returns a reference to the requested folder.
Returns a reference to the requested folder .
&self
path
&[LayerId]