pub fn document_folder_mut(&mut self, path: &[LayerId]) -> Result<&mut Folder, DocumentError> {
		let mut root = &mut self.root;
		for id in path {
			root = root.folder_mut(*id).ok_or(DocumentError::LayerNotFound)?;
		}
		Ok(root)
	}
/// Returns a mutable 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.
/// If you manually edit the folder you have to set the cache_dirty flag yourself.
Returns a mutable 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.
If you manually edit the folder you have to set the cache_dirty flag yourself.
Returns a mutable 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 . If you manually edit the folder you have to set the cache_dirty flag yourself .
pub fn document_folder_mut(&mut self, path: &[LayerId]) -> Result<&mut Folder, DocumentError> {
		let mut root = &mut self.root;
		for id in path {
			root = root.folder_mut(*id).ok_or(DocumentError::LayerNotFound)?;
		}
		Ok(root)
	}
pub fn document_folder_mut ( & mut self , path : & [ LayerId ] ) -> Result < & mut Folder , DocumentError > { let mut root = & mut self . root ; for id in path { root = root . folder_mut ( * id ) . ok_or ( DocumentError :: LayerNotFound ) ? ; } Ok ( root ) }
Returns a mutable reference to the requested folder.
Returns a mutable reference to the requested folder .
&mut self
path
&[LayerId]