MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / members

Method members

src/debug_utils/validate_func.rs:83–88  ·  view source on GitHub ↗

Returns the members of the `ValueGroup`, or the single `Value`.

(&'a self, func: &'a impl Function)

Source from the content-addressed store, hash-verified

81impl 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)]

Callers 2

check_constraintMethod · 0.80

Calls 1

value_group_membersMethod · 0.45

Tested by

no test coverage detected