pub fn folder_mut(&mut self, id: LayerId) -> Option<&mut FolderLayer> {
		match self.layer_mut(id) {
			Some(Layer {
				data: LayerDataType::Folder(folder), ..
			}) => Some(folder),
			_ => None,
		}
	}
/// Tries to get a mutable reference to folder with the given `id`.
/// This operation will return `None` if either no layer with `id` exists
/// in the folder or the layer with matching ID is not a folder.
/// See the [FolderLayer::folder] method for a usage example.
Tries to get a mutable reference to folder with the given `id`.
This operation will return `None` if either no layer with `id` exists
in the folder or the layer with matching ID is not a folder.
See the [FolderLayer::folder] method for a usage example.
Tries to get a mutable reference to folder with the given ` id ` . This operation will return ` None ` if either no layer with ` id ` exists in the folder or the layer with matching ID is not a folder . See the [ FolderLayer :: folder ] method for a usage example .
pub fn folder_mut(&mut self, id: LayerId) -> Option<&mut FolderLayer> {
		match self.layer_mut(id) {
			Some(Layer {
				data: LayerDataType::Folder(folder), ..
			}) => Some(folder),
			_ => None,
		}
	}
pub fn folder_mut ( & mut self , id : LayerId ) -> Option < & mut FolderLayer > { match self . layer_mut ( id ) { Some ( Layer { data : LayerDataType :: Folder ( folder ) , .. } ) => Some ( folder ) , _ => None , } }
Tries to get a mutable reference to folder with the given `id`.
Tries to get a mutable reference to folder with the given ` id ` .
&mut self
id
LayerId
&mut self
id
LayerId