BiOptionally

name.rayrobdod.stringContextParserCombinator.typeclass.BiOptionally
See theBiOptionally companion object
trait BiOptionally[Expr[_], A, Z] extends Optionally[A, Z], ContraOptionally[Expr, A, Z]

Describes how to both represent and extract an optional value

Type parameters

A

the optional input type

Expr

the macro-level expression type

Z

the result container

Attributes

See also
Companion
object
Source
Optionally.scala
Graph
Supertypes
trait ContraOptionally[Expr, A, Z]
trait Optionally[A, Z]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def contraNone(elem: Z): Expr[Boolean]

Returns whether the Z value represents a missing A

Returns whether the Z value represents a missing A

Attributes

Inherited from:
ContraOptionally
Source
Optionally.scala
def contraSome: PartialExprFunction[Expr, Z, A]

Returns a PartialExprFunction that indicates whether the Z value represents a present A and, if so, that A value

Returns a PartialExprFunction that indicates whether the Z value represents a present A and, if so, that A value

Attributes

Inherited from:
ContraOptionally
Source
Optionally.scala
def none: Z

Returns a Z value representing a missing A

Returns a Z value representing a missing A

Attributes

Inherited from:
Optionally
Source
Optionally.scala
def some(elem: A): Z

Returns a Z value representing the given A

Returns a Z value representing the given A

Attributes

Inherited from:
Optionally
Source
Optionally.scala