chisel3.experimental.hierarchy.core.Lookupable
See theLookupable companion object
Typeclass used to recontextualize values from an original Definition to an Instance
Implementations for Chisel types and other common Scala types are provided in the companion object. Users can define Lookupable for their own types.
Attributes
- Example
-
case class Foo[T <: Data](name: String, data: T) object Foo { implicit def lookupable[T <: Data]: Lookupable.Simple[Foo[T]] = Lookupable.product2[Foo[T], String, T]( x => (x.name, x.data), Foo.apply ) } - Companion
- object
- Source
- Lookupable.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SimpleLookupable[X]
Members list
In this article