MCPcopy Create free account
hub / github.com/biblius/validify / validify_attr_check

Function validify_attr_check

validify_derive/src/fields.rs:389–393  ·  view source on GitHub ↗

Check whether the attribute belongs to validify, i.e. is it `validate`, `modify`, or `validify`.

(attr: &syn::Attribute)

Source from the content-addressed store, hash-verified

387/// Check whether the attribute belongs to validify, i.e. is it
388/// `validate`, `modify`, or `validify`.
389pub fn validify_attr_check(attr: &syn::Attribute) -> bool {
390 attr.path().is_ident("validify")
391 || attr.path().is_ident("validate")
392 || attr.path().is_ident("modify")
393}
394
395fn is_reference(ty: &syn::Type) -> bool {
396 // Strip any `Option`s

Callers 1

remaining_attrsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected