Skip to content

Failure[S: (Any #read & Equatable[S]), optional D: Any #share, optional V: Any #share]

[Source]

The result of a failed match.

class box Failure[S: (Any #read & Equatable[S]), optional D: Any #share, optional V: Any #share]

Constructors

create

[Source]

new ref create(
  node': RuleNode[S, D, V] box,
  start': Loc[S] val,
  message': (String val | None val) = reference,
  inner': (Failure[S, D, V] box | None val) = reference,
  from_error': Bool val = false)
: Failure[S, D, V] ref^

Parameters

Returns


Public fields

let node: RuleNode[S, D, V] box

[Source]


let start: Loc[S] val

[Source]


let message: (String val | None val)

[Source]


let inner: (Failure[S, D, V] box | None val)

[Source]


let from_error: Bool val

[Source]


Public Functions

get_message

[Source]

fun box get_message()
: String val

Returns


string

[Source]

fun box string()
: String iso^

Returns