ExBoxPacker.SimpleItem (ExBoxPacker v0.2.0)

Copy Markdown View Source

A ready-made ExBoxPacker.Item implementation for the common case.

quantity is a convenience (default 1) expanded to N identical units during packing. It is not part of the Item protocol.

Summary

Types

t()

@type t() :: %ExBoxPacker.SimpleItem{
  allowed_rotation: ExBoxPacker.Rotation.t(),
  depth: integer() | nil,
  description: String.t() | nil,
  length: integer() | nil,
  quantity: pos_integer(),
  weight: integer() | nil,
  width: integer() | nil
}