RustQ.Syn.Method (rustq v1.0.0-rc.19)

Copy Markdown View Source

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.

Summary

Types

t()

@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
}