All Downloads are FREE. Search and download functionalities are using the official Maven repository.

izumi.fundamentals.graphs.NodeShow.scala Maven / Gradle / Ivy

package izumi.fundamentals.graphs

trait NodeShow[T] {
  def show(t: T): String
}

object NodeShow {
  implicit def IntNodeShow: NodeShow[Int] = _.toString
  implicit def StringNodeShow: NodeShow[String] = new NodeShow[String] {
    override def show(t: String): String = t
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy