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

Function new

enumset/src/macros.rs:70–72  ·  view source on GitHub ↗
(set: T::Repr)

Source from the content-addressed store, hash-verified

68 /// Constructs an EnumSet from the underlying repr
69 #[inline(always)]
70 pub const fn new<T: EnumSetType>(set: T::Repr) -> EnumSet<T> {
71 EnumSet { repr: set }
72 }
73}
74
75/// Creates an [`EnumSet`](crate::EnumSet) literal, which can be used in const contexts.

Callers 15

testFunction · 0.85
test_insert_remove_valueFunction · 0.85
errorFunction · 0.85
fromMethod · 0.85
generate_codeFunction · 0.85
create_enum_conversionsFunction · 0.85
newMethod · 0.85
enum_reprMethod · 0.85
plan_for_enumFunction · 0.85
uiFunction · 0.85

Calls

no outgoing calls

Tested by 5

testFunction · 0.68
test_insert_remove_valueFunction · 0.68
uiFunction · 0.68