ShownDef
Members list
Type members
Classlikes
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object given_Show_ApproxState.typeobject given_Show_FlagSet.typeobject given_Show_ParamInfo.typeobject ShowAny.type
Attributes
Attributes
- Graph
- Supertypes
- Known subtypes
- object Show.type
Attributes
- Graph
- Supertypes
- Known subtypes
- class ShowImplicits1object Show.type
Attributes
- Graph
- Supertypes
- Known subtypes
Types
Represents a value that has been "shown" and can be consumed by StringFormatter.
Not just a string because it may be a Seq that StringFormatter will intersperse with the trailing separator.
Also, it's not a String | Seq[String]
because then we'd need a Context to call Showable#show
. We could
make Context a requirement for a Show instance but then we'd have lots of instances instead of just one ShowAny
instance. We could also try to make Show#show
require the Context, but then that breaks the Conversion.
Represents a value that has been "shown" and can be consumed by StringFormatter.
Not just a string because it may be a Seq that StringFormatter will intersperse with the trailing separator.
Also, it's not a String | Seq[String]
because then we'd need a Context to call Showable#show
. We could
make Context a requirement for a Show instance but then we'd have lots of instances instead of just one ShowAny
instance. We could also try to make Show#show
require the Context, but then that breaks the Conversion.