trait StateRules extends AnyRef
A factory for rules that apply to a particular context.
- Source
- Rules.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- StateRules
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Rule[+A, +X] = rules.Rule[S, S, A, X]
- abstract type S
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from StateRules toany2stringadd[StateRules] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (StateRules, B)
- Implicit
- This member is added by an implicit conversion from StateRules toArrowAssoc[StateRules] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allOf[A, X](rules: Seq[Rule[A, X]]): (S) => Result[S, List[A], X]
Create a rule that succeeds if all of the given rules succeed.
Create a rule that succeeds if all of the given rules succeed.
- rules
the rules to apply in sequence.
- def anyOf[A, X](rules: Seq[Rule[A, X]]): rules.Rule[S, S, collection.immutable.List[A], X]
Create a rule that succeeds with a list of all the provided rules that succeed.
Create a rule that succeeds with a list of all the provided rules that succeed.
- rules
the rules to apply in sequence.
- def apply[A, X](f: (S) => Result[S, A, X]): rules.Rule[S, S, A, X]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cond(f: (S) => Boolean): rules.Rule[S, S, S, Nothing]
Create a rule that identities if f(in) is true.
- def ensuring(cond: (StateRules) => Boolean, msg: => Any): StateRules
- Implicit
- This member is added by an implicit conversion from StateRules toEnsuring[StateRules] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (StateRules) => Boolean): StateRules
- Implicit
- This member is added by an implicit conversion from StateRules toEnsuring[StateRules] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): StateRules
- Implicit
- This member is added by an implicit conversion from StateRules toEnsuring[StateRules] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): StateRules
- Implicit
- This member is added by an implicit conversion from StateRules toEnsuring[StateRules] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from StateRules toStringFormat[StateRules] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- def get: rules.Rule[S, S, S, Nothing]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nil: rules.Rule[S, S, collection.immutable.Nil.type, Nothing]
- def none: rules.Rule[S, S, None.type, Nothing]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def read[A](f: (S) => A): rules.Rule[S, S, A, Nothing]
- def repeatUntil[T, X](rule: Rule[(T) => T, X])(finished: (T) => Boolean)(initial: T): rules.Rule[S, S, T, X]
Repeatedly apply a rule from initial value until finished condition is met.
- def set(s: => S): rules.Rule[S, S, S, Nothing]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit[A](a: => A): rules.Rule[S, S, A, Nothing]
- def update(f: (S) => S): rules.Rule[S, S, S, Nothing]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (StateRules, B)
- Implicit
- This member is added by an implicit conversion from StateRules toArrowAssoc[StateRules] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.