MCPcopy Create free account
hub / github.com/dtolnay/thiserror / has_display

Method has_display

impl/src/prop.rs:38–50  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

36 }
37
38 pub(crate) fn has_display(&self) -> bool {
39 self.attrs.display.is_some()
40 || self.attrs.transparent.is_some()
41 || self.attrs.fmt.is_some()
42 || self
43 .variants
44 .iter()
45 .any(|variant| variant.attrs.display.is_some() || variant.attrs.fmt.is_some())
46 || self
47 .variants
48 .iter()
49 .all(|variant| variant.attrs.transparent.is_some())
50 }
51}
52
53impl Variant<'_> {

Callers 2

impl_enumFunction · 0.80
validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected