# `RustQ.Syn.Method`
[🔗](https://github.com/elixir-crab/rustq/blob/v1.0.0-rc.19/lib/rustq/syn.ex#L679)

Rust impl or trait method metadata, including doc comments, arguments, and return type.

`attributes` names the paths of the method's attributes, as `"inline"` or `"unstable"`.
`bounds` pairs each of its `type_parameters`, and those of its impl or trait, with the traits
bounding it, as `{"R", ["Try"]}` for `Iterator::try_fold`.

# `t`

```elixir
@type t() :: %RustQ.Syn.Method{
  args: [RustQ.Syn.Arg.t()],
  attributes: [String.t()],
  bounds: [{String.t(), [String.t()]}],
  docs: [String.t()],
  name: String.t(),
  returns: String.t() | nil,
  returns_ast: RustQ.Syn.type() | nil,
  signature: String.t() | nil,
  signature_ast: RustQ.Syn.Signature.t() | nil,
  source_line: pos_integer() | nil,
  source_path: Path.t() | nil,
  type_parameters: [String.t()],
  visibility: :public | :private
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
