Skip to content

BitvSet::is_disjoint is reversed #16587

Closed
@zwarich

Description

@zwarich

The implementation of BitvSet::is_disjoint is this:

    #[inline]
    fn is_disjoint(&self, other: &BitvSet) -> bool {
        self.intersection(other).count() > 0
    }

It also shouldn't use count; it can just check whether the intersection iterator is empty directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions