MemoisableRules

org.json4s.scalap.MemoisableRules
trait MemoisableRules extends Rules

Attributes

Source:
Memoisable.scala
Graph
Supertypes
trait Rules
class Object
trait Matchable
class Any
Known subtypes
object ScalaSigParsers.type

Members list

Concise view

Type members

Inherited classlikes

class DefaultRule[In, Out, A, X](f: In => Result[Out, A, X]) extends Rule[In, Out, A, X]

Attributes

Inherited from:
Rules
Source:
Rules.scala
Graph
Supertypes
trait Rule[In, Out, A, X]
trait In => Result[Out, A, X]
class Object
trait Matchable
class Any
trait FromRule[In]

Attributes

Inherited from:
Rules
Source:
Rules.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def memo[In <: Memoisable, Out, A, X](key: AnyRef)(toRule: => In => Result[Out, A, X]): Rule[In, Out, A, X]

Attributes

Source:
Memoisable.scala
override def ruleWithName[In, Out, A, X](name: String, f: In => Result[Out, A, X]): Rule[In, Out, A, X] & Name

Attributes

Definition Classes
Source:
Memoisable.scala

Inherited methods

def error[X](err: X): Rule[Any, Nothing, Nothing, X]

Attributes

Inherited from:
Rules
Source:
Rules.scala
def error[In]: Rule[In, Nothing, Nothing, In]

Attributes

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.

Attributes

Inherited from:
Rules
Source:
Rules.scala
def failure: Rule[Any, Nothing, Nothing, Nothing]

Attributes

Inherited from:
Rules
Source:
Rules.scala
def from[In]: FromRule[In]

Attributes

Inherited from:
Rules
Source:
Rules.scala
def oneOf[In, Out, A, X](rules: Rule[In, Out, A, X]*): Rule[In, Out, A, X]

Attributes

Inherited from:
Rules
Source:
Rules.scala
def state[s]: StateRules { type S = s; }

Attributes

Inherited from:
Rules
Source:
Rules.scala
def success[Out, A](out: Out, a: A): Rule[Any, Out, A, Nothing]

Attributes

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]

Attributes

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

Attributes

Inherited from:
Rules
Source:
Rules.scala
implicit def seqRule[In, A, X](rule: Rule[In, In, A, X]): SeqRule[In, A, X]

Attributes

Inherited from:
Rules
Source:
Rules.scala