Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
impl 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
14
impl Struct<'_> {
Callers
1
try_expand
Function · 0.80
Calls
3
check_non_field_attrs
Function · 0.85
check_field_attrs
Function · 0.85
has_display
Method · 0.80
Tested by
no test coverage detected