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

Method validate

impl/src/valid.rs:6–11  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4
5impl Input<'_> {
6 pub(crate) fn validate(&self) -> Result<()> {
7 match self {
8 Input::Struct(input) => input.validate(),
9 Input::Enum(input) => input.validate(),
10 }
11 }
12}
13
14impl Struct<'_> {

Callers 1

try_expandFunction · 0.80

Calls 3

check_non_field_attrsFunction · 0.85
check_field_attrsFunction · 0.85
has_displayMethod · 0.80

Tested by

no test coverage detected