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

Function is_reference

validify_derive/src/fields.rs:395–402  ·  view source on GitHub ↗
(ty: &syn::Type)

Source from the content-addressed store, hash-verified

393}
394
395fn is_reference(ty: &syn::Type) -> bool {
396 // Strip any `Option`s
397 if let Some(ty) = try_extract_option(ty) {
398 return is_reference(ty);
399 }
400
401 matches!(ty, syn::Type::Reference(_))
402}
403
404fn is_list(ty: &syn::Type) -> bool {
405 if let Some(ty) = try_extract_option(ty) {

Callers 1

is_referenceMethod · 0.85

Calls 1

try_extract_optionFunction · 0.85

Tested by

no test coverage detected