pub fn layer_panel(&mut self, path: &[LayerId]) -> Result<Vec<LayerPanelEntry>, EditorError> {
		let folder = self.document.document_folder_mut(path)?;
		let ids = folder.as_folder()?.layer_ids.clone();
		let self_layer_data = &mut self.layer_data;
		let entries = folder
			.as_folder_mut()?
			.layers_mut()
			.iter_mut()
			.zip(ids)
			.rev()
			.map(|(layer, id)| {
				let path = [path, &[id]].concat();
				layer_panel_entry(layer_data(self_layer_data, &path), layer, path)
			})
			.collect();
		Ok(entries)
	}
/// Returns a list of `LayerPanelEntry`s intended for display purposes. These don't contain
/// any actual data, but rather metadata such as visibility and names of the layers.
Returns a list of `LayerPanelEntry`s intended for display purposes. These don't contain
any actual data, but rather metadata such as visibility and names of the layers.
Returns a list of ` LayerPanelEntry ` s intended for display purposes . These don ' t contain any actual data but rather metadata such as visibility and names of the layers .
pub fn layer_panel(&mut self, path: &[LayerId]) -> Result<Vec<LayerPanelEntry>, EditorError> {
		let folder = self.document.document_folder_mut(path)?;
		let ids = folder.as_folder()?.layer_ids.clone();
		let self_layer_data = &mut self.layer_data;
		let entries = folder
			.as_folder_mut()?
			.layers_mut()
			.iter_mut()
			.zip(ids)
			.rev()
			.map(|(layer, id)| {
				let path = [path, &[id]].concat();
				layer_panel_entry(layer_data(self_layer_data, &path), layer, path)
			})
			.collect();
		Ok(entries)
	}
pub fn layer_panel ( & mut self , path : & [ LayerId ] ) -> Result < Vec < LayerPanelEntry > , EditorError > { let folder = self . document . document_folder_mut ( path ) ? ; let ids = folder . as_folder ( ) ? . layer_ids . clone ( ) ; let self_layer_data = & mut self . layer_data ; let entries = folder . as_folder_mut ( ) ? . layers_mut ( ) . iter_mut ( ) . zip ( ids ) . rev ( ) . map ( | ( layer , id ) | { let path = [ path , & [ id ] ] . concat ( ) ; layer_panel_entry ( layer_data ( self_layer_data , & path ) , layer , path ) } ) . collect ( ) ; Ok ( entries ) }
Returns a list of `LayerPanelEntry`s intended for display purposes.
Returns a list of ` LayerPanelEntry ` s intended for display purposes .
&mut self
path
&[LayerId]
&mut self
path
&[LayerId]