MemoisableRules

trait MemoisableRules extends Rules
trait Rules
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class DefaultRule[In, Out, A, X](f: In => Result[Out, A, X])
Inherited from
Rules
trait FromRule[In]
Inherited from
Rules

Value members

Concrete methods

def memo[In <: Memoisable, Out, A, X](key: AnyRef)(toRule: => In => Result[Out, A, X]): Rule[In, Out, A, X]
override def ruleWithName[In, Out, A, X](name: String, f: In => Result[Out, A, X]): Rule[In, Out, A, X] & Name
Definition Classes

Inherited methods

def error[X](err: X): Rule[Any, Nothing, Nothing, X]
Inherited from
Rules
def error[In]: Rule[In, Nothing, Nothing, In]
Inherited from
Rules
def expect[In, Out, A, Any](rule: Rule[In, Out, A, Any]): In => A

Converts a rule into a function that throws an Exception on failure.

Converts a rule into a function that throws an Exception on failure.

Inherited from
Rules
def failure: Rule[Any, Nothing, Nothing, Nothing]
Inherited from
Rules
def from[In]: FromRule[In]
Inherited from
Rules
def oneOf[In, Out, A, X](rules: Rule[In, Out, A, X]*): Rule[In, Out, A, X]
Inherited from
Rules
def state[s]: StateRules { type S = s; }
Inherited from
Rules
def success[Out, A](out: Out, a: A): Rule[Any, Out, A, Nothing]
Inherited from
Rules

Implicits

Inherited implicits

implicit def inRule[In, Out, A, X](rule: Rule[In, Out, A, X]): InRule[In, Out, A, X]
Inherited from
Rules
implicit def rule[In, Out, A, X](f: In => Result[Out, A, X]): Rule[In, Out, A, X]
Inherited from
Rules
implicit def seqRule[In, A, X](rule: Rule[In, In, A, X]): SeqRule[In, A, X]
Inherited from
Rules