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

Method has_source

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

Source from the content-addressed store, hash-verified

24
25impl Enum<'_> {
26 pub(crate) fn has_source(&self) -> bool {
27 self.variants
28 .iter()
29 .any(|variant| variant.source_field().is_some() || variant.attrs.transparent.is_some())
30 }
31
32 pub(crate) fn has_backtrace(&self) -> bool {
33 self.variants

Callers 1

impl_enumFunction · 0.80

Calls 1

source_fieldMethod · 0.80

Tested by

no test coverage detected