defimpl Result for: Error, as: ->
def ok? as: -> false end
def error? as: -> true end
def <Any> ok as: ->
Huia::Primitive.panic("Attempt to convert error into value")
end
def <Any> error as: ->
self