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

Copy Markdown View Source

Rust trait metadata: its name, doc comments, associated types, and the methods it declares or provides.

types pairs each associated type with the traits bounding it, named by the last segment of their path, as in {"IntoIter", ["Iterator"]}.

Summary

Types

t()

@type t() :: %RustQ.Syn.Trait{
  docs: [String.t()],
  methods: [RustQ.Syn.Method.t()],
  name: String.t(),
  source_line: pos_integer() | nil,
  source_path: Path.t() | nil,
  types: [{String.t(), [String.t()]}],
  visibility: :public | :private
}