Lines Matching refs:union
35 //! assert_eq!((e1 | e2), Flags::ABC); // union
142 //! too: `Extend` adds the union of the instances of the `struct` iterated over,
143 //! while `FromIterator` calculates the union.
152 //! - `BitOr` and `BitOrAssign`: union
184 //! - `union`: returns a new set of flags, containing any flags present in
305 /// assert_eq!((e1 | e2), Flags::ABC); // union
651 /// Returns the union of between the flags in `self` and `other`.
664 pub const fn union(self, other: Self) -> Self {
729 /// Returns the union of the two sets of flags.
1156 assert_eq!((e1 | e2), Flags::ABC); // union
1175 assert_eq!((e1 | e2), (Flags::ABC | extra)); // union
1188 let ab = Flags::A.union(Flags::B);
1189 let ac = Flags::A.union(Flags::C);
1190 let bc = Flags::B.union(Flags::C);
1195 assert_eq!(ab, Flags::B.union(Flags::A));
1196 assert_eq!(ac, Flags::C.union(Flags::A));
1197 assert_eq!(bc, Flags::C.union(Flags::B));
1201 assert_eq!(ab.union(bc), Flags::ABC);
1206 assert_eq!(ac.union(bc), ac | bc);
1207 assert_eq!(ac.union(bc), Flags::ABC);
1208 assert_eq!(bc.union(ac), Flags::ABC);
1221 assert_eq!(ac.symmetric_difference(bc), Flags::A.union(Flags::B));
1222 assert_eq!(bc.symmetric_difference(ac), Flags::A.union(Flags::B));
1230 const UNION: Flags = Flags::A.union(Flags::C);
1244 let e1 = Flags::A.union(Flags::C).union(extra);
1245 let e2 = Flags::B.union(Flags::C);
1247 assert_eq!(e1.union(e2), (Flags::ABC | extra));
1292 a.union(b).bits,
1329 assert_eq!(a.union(b), a | b, "named != op: `{:?}` | `{:?}`", a, b,);
1349 assert_eq!(a.union(b), b.union(a), "asymmetry: `{:?}` | `{:?}`", a, b,);
1381 // union