pub fn layer_panel(&mut self, path: &[LayerId]) -> Result<Vec<LayerPanelEntry>, EditorError> {
		let folder = self.document.document_folder(path)?;
		let self_layer_data = &mut self.layer_data;
		let entries = folder
			.layers()
			.iter()
			.zip(folder.layer_ids.iter())
			.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(path)?;
		let self_layer_data = &mut self.layer_data;
		let entries = folder
			.layers()
			.iter()
			.zip(folder.layer_ids.iter())
			.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 ( path ) ? ; let self_layer_data = & mut self . layer_data ; let entries = folder . layers ( ) . iter ( ) . zip ( folder . layer_ids . iter ( ) ) . 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]