Object Valuable provides utility methods and implicit conversions related to the Valuable trait, enabling parsing and conversion of strings to Valuable representations.
Attributes
Members list
Type members
Classlikes
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
- Self type
-
LoggableValuable.type
Value members
Concrete methods
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
Valuableinstance to be converted into anOption[Field]
Attributes
- Returns
-
Some(Field)if the conversion is successful, orNoneif 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
Valuableinstance that is to be converted into anOption[Field].
Attributes
- Returns
-
Some(Field)if the conversion is successful, orNoneif theValuablecannot be converted.
Implicits
Implicits
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
Valuableinstance to be converted into aString.
Attributes
- Returns
-
the string representation of the provided
Valuableobject, as rendered by itsrendermethod.