MCPcopy Create free account
hub / github.com/bitflags/bitflags / new

Method new

src/traits.rs:26–28  ·  view source on GitHub ↗

Define a flag. If `name` is non-empty then the flag is named, otherwise it's unnamed. */

(name: &'static str, value: B)

Source from the content-addressed store, hash-verified

24 If `name` is non-empty then the flag is named, otherwise it's unnamed.
25 */
26 pub const fn new(name: &'static str, value: B) -> Self {
27 Flag { name, value }
28 }
29
30 /**
31 Get the name of this flag.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected