Lines Matching refs:Method
39 doc_comment: Vec<Method>,
40 methods: Vec<Method>,
46 next_display_order: Option<Method>,
47 next_help_heading: Option<Method>,
320 self.value_parser = Some(ValueParser::Explicit(Method::new(name, quote!(#arg))));
322 self.action = Some(Action::Explicit(Method::new(name, quote!(#arg))));
327 self.methods.push(Method::new(name, quote!(#arg)));
504 Method::from_env(attr.name.clone(), "CARGO_PKG_DESCRIPTION")?
525 if let Some(method) = Method::from_env(attr.name.clone(), "CARGO_PKG_AUTHORS")? {
533 if let Some(method) = Method::from_env(attr.name.clone(), "CARGO_PKG_VERSION")? {
583 self.methods.push(Method::new(raw_ident, val));
664 self.methods.push(Method::new(
715 self.methods.push(Method::new(raw_ident, val));
796 self.methods.push(Method::new(
806 self.next_display_order = Some(Method::new(attr.name.clone(), quote!(#expr)));
813 self.next_help_heading = Some(Method::new(attr.name.clone(), quote!(#expr)));
898 let short = Method::new(
907 let long = Method::new(
941 pub fn find_default_method(&self) -> Option<&Method> {
1002 pub fn value_parser(&self, field_type: &Type) -> Method {
1025 pub fn action(&self, field_type: &Type) -> Method {
1073 Explicit(Method),
1078 fn resolve(self, _inner_type: &Type) -> Method {
1093 fn default_value_parser(inner_type: &Type, span: Span) -> Method {
1095 Method::new(
1105 Explicit(Method),
1110 pub fn resolve(self, _field_type: &Type) -> Method {
1125 fn default_action(field_type: &Type, span: Span) -> Method {
1152 Method::new(func, args)
1208 pub struct Method {
1213 impl Method {
1215 Method { name, args }
1242 Ok(Some(Method::new(ident, quote!(#lit))))
1250 impl ToTokens for Method {
1252 let Method { ref name, ref args } = self;