MCPcopy Create free account
hub / github.com/Lymia/enumset / as_enumset

Method as_enumset

enumset/src/impl_set_mixed.rs:263–266  ·  view source on GitHub ↗

Converts this set into the corresponding [`EnumSet`]. If any unknown bits are present in the set, this method will panic.

(&self)

Source from the content-addressed store, hash-verified

261 ///
262 /// If any unknown bits are present in the set, this method will panic.
263 pub fn as_enumset(&self) -> EnumSet<T> {
264 self.try_as_enumset()
265 .expect("Bitset contains invalid variants.")
266 }
267
268 /// Attempts to convert this set into the corresponding [`EnumSet`].
269 ///

Calls 1

try_as_enumsetMethod · 0.80

Tested by 1