# `RustQ.Native.Ref`
[🔗](https://github.com/dannote/rustq/blob/v0.11.1/lib/rustq/native/ref.ex#L1)

Reference to a Rust native item used by code generators.

A native ref names the Rust package plus a target/member pair, for example
`skia-safe::Canvas::draw_rect`. Package is optional for local or
caller-scoped references.

# `t`

```elixir
@type t() :: %RustQ.Native.Ref{
  member: String.t(),
  package: String.t() | nil,
  target: String.t()
}
```

# `format`

```elixir
@spec format(t()) :: String.t()
```

Formats a native reference as a Rust path.

# `new`

```elixir
@spec new(String.t(), String.t(), keyword()) :: t()
```

Builds a native reference.

---

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