Valuable

com.phasmidsoftware.number.algebra.core.Valuable
See theValuable companion trait
object Valuable

Object Valuable provides utility methods and implicit conversions related to the Valuable trait, enabling parsing and conversion of strings to Valuable representations.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Valuable.type

Members list

Type members

Classlikes

object LoggableValuable extends Loggable[Valuable]

Implicit object LoggableValuable provides a Loggable implementation for the Valuable type. This allows Valuable instances to be formatted as strings suitable for logging purposes.

Implicit object LoggableValuable provides a Loggable implementation for the Valuable type. This allows Valuable instances to be formatted as strings suitable for logging purposes.

The implementation utilizes the toString method of the Valuable instance to generate the log representation.

Attributes

Supertypes
trait Loggable[Valuable]
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def unapply(v: Valuable): Option[Field]

Extractor method to convert a Valuable instance into an Option containing its corresponding Field representation. This allows for safe pattern matching and handling of Valuable objects that may or may not be convertible to a Field.

Extractor method to convert a Valuable instance into an Option containing its corresponding Field representation. This allows for safe pattern matching and handling of Valuable objects that may or may not be convertible to a Field.

Value parameters

v

the Valuable instance to be converted into an Option[Field]

Attributes

Returns

Some(Field) if the conversion is successful, or None if it fails

Attempts to convert a given eager Valuable instance into an Option[Field]. This method performs pattern matching on the input Valuable object to map it to a corresponding Field representation if possible. If no valid mapping exists, it returns None.

Attempts to convert a given eager Valuable instance into an Option[Field]. This method performs pattern matching on the input Valuable object to map it to a corresponding Field representation if possible. If no valid mapping exists, it returns None.

Value parameters

v

the Valuable instance that is to be converted into an Option[Field].

Attributes

Returns

Some(Field) if the conversion is successful, or None if the Valuable cannot be converted.

Implicits

Implicits

implicit def toString(v: Valuable): String

Implicitly converts a Valuable instance into its string representation. This is achieved by invoking the render method of the Valuable object.

Implicitly converts a Valuable instance into its string representation. This is achieved by invoking the render method of the Valuable object.

Value parameters

v

the Valuable instance to be converted into a String.

Attributes

Returns

the string representation of the provided Valuable object, as rendered by its render method.