MCPcopy Create free account
hub / github.com/RustCrypto/SSH / fields_variables

Function fields_variables

ssh-derive/src/encode.rs:180–221  ·  view source on GitHub ↗

Generate a list of field variables for a struct or enum variant. If `use_self` is true, the fields are accessed using `self. ` (for struct fields). Otherwise, the fields are accessed directly (for enum variants and match expressions).

(fields: &syn::Fields, use_self: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

iterMethod · 0.80
as_refMethod · 0.45

Tested by 4

test_derive_for_fieldsFunction · 0.68