MemoisableRules

trait MemoisableRules extends Rules
trait Rules
class Object
trait Matchable
class Any
object ScalaSigParsers.type

Type members

Inherited classlikes

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

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
Source:
Memoisable.scala

Inherited methods

def error[X](err: X): Rule[Any, Nothing, Nothing, X]
Inherited from:
Rules
Source:
Rules.scala
def error[In]: Rule[In, Nothing, Nothing, In]
Inherited from:
Rules
Source:
Rules.scala
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
Source:
Rules.scala
def failure: Rule[Any, Nothing, Nothing, Nothing]
Inherited from:
Rules
Source:
Rules.scala
def from[In]: FromRule[In]
Inherited from:
Rules
Source:
Rules.scala
def oneOf[In, Out, A, X](rules: Rule[In, Out, A, X]*): Rule[In, Out, A, X]
Inherited from:
Rules
Source:
Rules.scala
def state[s]: StateRules { type S = s; }
Inherited from:
Rules
Source:
Rules.scala
def success[Out, A](out: Out, a: A): Rule[Any, Out, A, Nothing]
Inherited from:
Rules
Source:
Rules.scala

Implicits

Inherited implicits

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