Current section
Files
Jump to
Current section
Files
lib/rustq/rust/const.ex
defmodule RustQ.Rust.Const do
@moduledoc """
Represents a Rust `const` declaration built with `RustQ.Rust.const/4`.
"""
defstruct [:name, :type, :value, attrs: [], vis: nil]
@type t :: %__MODULE__{
name: atom() | String.t(),
type: term(),
value: term(),
attrs: [term()],
vis: atom() | String.t() | nil
}
end