Gcode.Model.Serialise protocol (gcode v1.0.2)

Copy Markdown

A protocol which is used to serialise the model into G-code output.

Summary

Types

t()

All the types that implement this protocol.

Types

result()

@type result() ::
  Gcode.Result.t(
    [String.t()],
    {:serialise_error, String.t()}
  )

t()

@type t() :: term()

All the types that implement this protocol.

Functions

serialise(serialisable)

@spec serialise(t()) :: Gcode.Result.t([String.t()])