pub fn mark_upstream_as_dirty(&mut self, path: &[LayerId]) -> Result<(), DocumentError> {
		let mut root = &mut self.root;
		root.cache_dirty = true;
		for id in path {
			root = root.as_folder_mut()?.layer_mut(*id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?;
			root.cache_dirty = true;
		}
		Ok(())
	}
/// Mark the layer at the provided path, as well as all the folders containing it, as dirty.
Mark the layer at the provided path, as well as all the folders containing it, as dirty.
Mark the layer at the provided path as well as all the folders containing it as dirty .
pub fn mark_upstream_as_dirty(&mut self, path: &[LayerId]) -> Result<(), DocumentError> {
		let mut root = &mut self.root;
		root.cache_dirty = true;
		for id in path {
			root = root.as_folder_mut()?.layer_mut(*id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?;
			root.cache_dirty = true;
		}
		Ok(())
	}
pub fn mark_upstream_as_dirty ( & mut self , path : & [ LayerId ] ) -> Result < ( ) , DocumentError > { let mut root = & mut self . root ; root . cache_dirty = true ; for id in path { root = root . as_folder_mut ( ) ? . layer_mut ( * id ) . ok_or_else ( | | DocumentError :: LayerNotFound ( path . into ( ) ) ) ? ; root . cache_dirty = true ; } Ok ( ( ) ) }
Mark the layer at the provided path, as well as all the folders containing it, as dirty.
Mark the layer at the provided path as well as all the folders containing it as dirty .
&mut self
path
&[LayerId]
&mut self
path
&[LayerId]