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

com.twitter.finagle.util.Showable.scala Maven / Gradle / Ivy

The newest version!
package com.twitter.finagle.util

/**
 * Trait showable is a type-class for showing parsable
 * representations of objects.
 */
trait Showable[-T] {
  def show(t: T): String
}

object Showable {
  def show[T](t: T)(implicit showable: Showable[T]): String = 
    showable.show(t)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy