}
impl<T: Ord> BTreeSet<T> {
- /// Visits the values representing the difference, in ascending order.
+ /// Visits the values representing the difference,
+ /// i.e. the values that are in `self` but not in `other`,
+ /// in ascending order.
///
/// # Examples
///
}
}
- /// Visits the values representing the symmetric difference, in ascending order.
+ /// Visits the values representing the symmetric difference,
+ /// i.e. the values that are in `self` or in `other` but not in both,
+ /// in ascending order.
///
/// # Examples
///
}
}
- /// Visits the values representing the intersection, in ascending order.
+ /// Visits the values representing the intersection,
+ /// i.e. the values that are both in `self` and `other`,
+ /// in ascending order.
///
/// # Examples
///
}
}
- /// Visits the values representing the union, in ascending order.
+ /// Visits the values representing the union,
+ /// i.e. all the values in `self` or `other`, without duplicates,
+ /// in ascending order.
///
/// # Examples
///
Recover::get(&self.map, value)
}
- /// Returns `true` if the set has no elements in common with `other`.
+ /// Returns `true` if `self` has no elements in common with `other`.
/// This is equivalent to checking for an empty intersection.
///
/// # Examples
self.intersection(other).next().is_none()
}
- /// Returns `true` if the set is a subset of another.
+ /// Returns `true` if the set is a subset of another,
+ /// i.e. `other` contains at least all the values in `self`.
///
/// # Examples
///
true
}
- /// Returns `true` if the set is a superset of another.
+ /// Returns `true` if the set is a superset of another,
+ /// i.e. `self` contains at least all the values in `other`.
///
/// # Examples
///
Iter { iter: self.map.keys() }
}
- /// Visit the values representing the difference.
+ /// Visit the values representing the difference,
+ /// i.e. the values that are in `self` but not in `other`.
///
/// # Examples
///
}
}
- /// Visit the values representing the symmetric difference.
+ /// Visit the values representing the symmetric difference,
+ /// i.e. the values that are in `self` or in `other` but not in both.
///
/// # Examples
///
SymmetricDifference { iter: self.difference(other).chain(other.difference(self)) }
}
- /// Visit the values representing the intersection.
+ /// Visit the values representing the intersection,
+ /// i.e. the values that are both in `self` and `other`.
///
/// # Examples
///
}
}
- /// Visit the values representing the union.
+ /// Visit the values representing the union,
+ /// i.e. all the values in `self` or `other`, without duplicates.
///
/// # Examples
///
Recover::get(&self.map, value)
}
- /// Returns `true` if the set has no elements in common with `other`.
+ /// Returns `true` if `self` has no elements in common with `other`.
/// This is equivalent to checking for an empty intersection.
///
/// # Examples
self.iter().all(|v| !other.contains(v))
}
- /// Returns `true` if the set is a subset of another.
+ /// Returns `true` if the set is a subset of another,
+ /// i.e. `other` contains at least all the values in `self`.
///
/// # Examples
///
self.iter().all(|v| other.contains(v))
}
- /// Returns `true` if the set is a superset of another.
+ /// Returns `true` if the set is a superset of another,
+ /// i.e. `self` contains at least all the values in `other`.
///
/// # Examples
///