Gcode.Model.Skip (gcode v1.0.0)
A G-code skip.
Link to this section Summary
Link to this section Types
Link to this type
error()
@type error() :: {:skip_error, String.t()}
@type t() :: %Gcode.Model.Skip{number: Gcode.Option.t(non_neg_integer())}
Link to this section Functions
Link to this function
init()
@spec init() :: Gcode.Result.t(t())
Initialise a skip without a number.
example
Example
iex> Skip.init()
{:ok, %Skip{number: none()}}
Link to this function
init(number)
@spec init(non_neg_integer()) :: Gcode.Result.t(t(), error())
Initialise a skip with a number.
example
Example
iex> 13
...> |> Skip.init()
{:ok, %Skip{number: some(13)}}