Renderable

com.phasmidsoftware.number.algebra.core.Renderable
trait Renderable

Trait representing a renderable entity that can be presented to the user as a string. Any class or trait that extends Renderable should provide an implementation of render to define how the entity will be rendered.

NOTE that render differs from toString in that the latter is intended to be used for debugging purposes, whereas the former is intended to be used for presentation to the user.

NOTE that there is also a render method declared in NumberLike (core module).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait MaybeFuzzy
class Angle
trait Functional
trait Radians
trait Transformed
class Exponential
class InversePower
class Real
trait Valuable
trait Lazy
trait Expression
class Noop
trait Root
class AbstractRoot
class LinearRoot
object L2
object LgE
class Literal
object E
object I
object Infinity
object Half
object MinusOne
object One
object Pi
object Two
object Zero
class Euler
trait Multiple
class Aggregate
class BiFunction
class UniFunction
trait Eager
trait Nat
object NatZero
class Succ
trait Solution
trait Algebraic
class Complex
trait Structure
trait Scalar
object NoScalar
trait Number
trait ExactNumber
class WholeNumber
trait Equation
class Quantity[D]
Show all

Members list

Value members

Abstract methods

def render: String

Method to render this Valuable for presentation to the user. NOTE to implementors: never ever invoke this.toString in your implementation lest you get a StackOverflow.

Method to render this Valuable for presentation to the user. NOTE to implementors: never ever invoke this.toString in your implementation lest you get a StackOverflow.

Attributes

Returns

a String