pub fn delete(&mut self, path: &[LayerId]) -> Result<(), DocumentError> {
		let (path, id) = split_path(path)?;
		let _ = self.layer_mut(path).map(|x| x.cache_dirty = true);
		self.document_folder_mut(path)?.remove_layer(id)?;
		Ok(())
	}
/// Deletes the layer specified by `path`.
Deletes the layer specified by `path`.
Deletes the layer specified by ` path ` .
pub fn delete(&mut self, path: &[LayerId]) -> Result<(), DocumentError> {
		let (path, id) = split_path(path)?;
		let _ = self.layer_mut(path).map(|x| x.cache_dirty = true);
		self.document_folder_mut(path)?.remove_layer(id)?;
		Ok(())
	}
pub fn delete ( & mut self , path : & [ LayerId ] ) -> Result < ( ) , DocumentError > { let ( path , id ) = split_path ( path ) ? ; let _ = self . layer_mut ( path ) . map ( | x | x . cache_dirty = true ) ; self . document_folder_mut ( path ) ? . remove_layer ( id ) ? ; Ok ( ( ) ) }
Deletes the layer specified by `path`.
Deletes the layer specified by ` path ` .
&mut self
path
&[LayerId]