pub fn is_disjoint(&self, other: &Self) -> bool {
        for read in other.reads_only() {
            // exit if reads are in read-only or shared range
            if self.find(read).map(|i| i < self.write).unwrap_or(false) {
                return false;
            }
        }

        for shared in other.readwrite() {
            // exit if shareds are found
            if self.find(shared).is_some() {
                return false;
            }
        }

        for write in other.writes_only() {
            // exit if writes are in write-only or shared range
            if self.find(write).map(|i| i >= self.shared).unwrap_or(false) {
                return false;
            }
        }

        true
    }
/// Returns `true` if none of the permissions in the given set are contained in this set.
Returns `true` if none of the permissions in the given set are contained in this set.
Returns ` true ` if none of the permissions in the given set are contained in this set .
pub fn is_disjoint(&self, other: &Self) -> bool {
        for read in other.reads_only() {
            // exit if reads are in read-only or shared range
            if self.find(read).map(|i| i < self.write).unwrap_or(false) {
                return false;
            }
        }
        for shared in other.readwrite() {
            // exit if shareds are found
            if self.find(shared).is_some() {
                return false;
            }
        }
        for write in other.writes_only() {
            // exit if writes are in write-only or shared range
            if self.find(write).map(|i| i >= self.shared).unwrap_or(false) {
                return false;
            }
        }
        true
    }
pub fn is_disjoint ( & self , other : & Self ) -> bool { for read in other . reads_only ( ) { // exit if reads are in read-only or shared range if self . find ( read ) . map ( | i | i < self . write ) . unwrap_or ( false ) { return false ; } } for shared in other . readwrite ( ) { // exit if shareds are found if self . find ( shared ) . is_some ( ) { return false ; } } for write in other . writes_only ( ) { // exit if writes are in write-only or shared range if self . find ( write ) . map ( | i | i >= self . shared ) . unwrap_or ( false ) { return false ; } } true }
Returns `true` if none of the permissions in the given set are contained in this set.
Returns ` true ` if none of the permissions in the given set are contained in this set .
&self
other
&Self
&self
other
&Self