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

Method empty

src/traits.rs:140–142  ·  view source on GitHub ↗

Get a flags value with all bits unset.

()

Source from the content-addressed store, hash-verified

138
139 /// Get a flags value with all bits unset.
140 fn empty() -> Self {
141 Self::from_bits_retain(Self::Bits::EMPTY)
142 }
143
144 /// Get a flags value with all known bits set.
145 fn all() -> Self {

Callers

nothing calls this directly

Implementers 2

macro_free.rsexamples/macro_free.rs
custom_bits_type.rsexamples/custom_bits_type.rs

Calls

no outgoing calls

Tested by

no test coverage detected