Returns the members of the `ValueGroup`, or the single `Value`.
(&'a self, func: &'a impl Function)
| 81 | impl ValueOrGroup { |
| 82 | /// Returns the members of the `ValueGroup`, or the single `Value`. |
| 83 | fn members<'a>(&'a self, func: &'a impl Function) -> &'a [Value] { |
| 84 | match *self { |
| 85 | ValueOrGroup::Value(ref value) => slice::from_ref(value), |
| 86 | ValueOrGroup::Group(group) => func.value_group_members(group), |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | #[derive(Copy, Clone)] |
no test coverage detected