pub fn compare_labels(
        target: &NexusLabel,
        list: &[NexusChildLabel<'_>],
    ) -> bool {
        for label in list {
            if let Some(entry) = &label.label {
                if entry.mbr != target.mbr
                    || entry.primary != target.primary
                    || entry.secondary != target.secondary
                    || entry.partitions != target.partitions
                {
                    return false;
                }
            }
        }
        true
    }
/// Compare all (existing) labels in list against the target NexusLabel.
/// Return true (only) if all are identical.
Compare all (existing) labels in list against the target NexusLabel.
Return true (only) if all are identical.
Compare all ( existing ) labels in list against the target NexusLabel . Return true ( only ) if all are identical .
pub fn compare_labels(
        target: &NexusLabel,
        list: &[NexusChildLabel<'_>],
    ) -> bool {
        for label in list {
            if let Some(entry) = &label.label {
                if entry.mbr != target.mbr
                    || entry.primary != target.primary
                    || entry.secondary != target.secondary
                    || entry.partitions != target.partitions
                {
                    return false;
                }
            }
        }
        true
    }
pub fn compare_labels ( target : & NexusLabel , list : & [ NexusChildLabel < ' _ > ] , ) -> bool { for label in list { if let Some ( entry ) = & label . label { if entry . mbr != target . mbr || entry . primary != target . primary || entry . secondary != target . secondary || entry . partitions != target . partitions { return false ; } } } true }
Compare all (existing) labels in list against the target NexusLabel.
Compare all ( existing ) labels in list against the target NexusLabel .
target
&NexusLabel
list
&[NexusChildLabel<'_>]