MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / parse_output

Function parse_output

node-graph/node-macro/src/parsing.rs:918–923  ·  view source on GitHub ↗
(output: &ReturnType)

Source from the content-addressed store, hash-verified

916}
917
918fn parse_output(output: &ReturnType) -> syn::Result<Type> {
919 match output {
920 ReturnType::Default => Ok(syn::parse_quote!(())),
921 ReturnType::Type(_, ty) => Ok((**ty).clone()),
922 }
923}
924
925fn extract_attribute<'a>(attrs: &'a [Attribute], name: &str) -> Option<&'a Attribute> {
926 attrs.iter().find(|attr| attr.path().is_ident(name))

Callers 1

parse_node_fnFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected