usestd::fmt::Debug;usecrate::sfz::{Opcode, OpcodeMap};/// Groups allow entering common parameters for multiple regions.
////// A group is defined with the <group> opcode, and the parameters enumerated
/// on it last till the next group opcode, or till the end of the file.
///#[derive(Clone, Debug, Default, PartialEq)]pubstructGroup{/// This list of opcodes overwrites the default ones.
pubopcodes: OpcodeMap,
/// The label of this group.
publabel: String,
}implGroup{/// New group.
pubfnnew()->Self{Self::default()}/// Add an opcode to the group.
pubfnadd_opcode(&mutself, o:&Opcode){self.opcodes.insert(o.str_name(), o.clone());}}