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

izumi.functional.WithRenderableSyntax.scala Maven / Gradle / Ivy

The newest version!
package izumi.functional

import izumi.functional.WithRenderableSyntax.RenderableSyntax

import scala.language.implicitConversions

trait WithRenderableSyntax {
  @inline implicit final def RenderableSyntax[T](r: T): RenderableSyntax[T] = new RenderableSyntax[T](r)
}

object WithRenderableSyntax {
  final class RenderableSyntax[T](private val r: T) extends AnyVal {
    def render()(implicit R: Renderable[T]): String = R.render(r)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy