Platform

zio.blocks.schema.Platform
See thePlatform companion object
trait Platform

Platform detection for zio-blocks-schema.

This trait provides compile-time information about the current runtime platform. Some features (like structural types) require reflection APIs that are only available on the JVM.

Platform-specific implementations are provided in:

  • jvm/src/main/scala/zio/blocks/schema/PlatformSpecific.scala
  • js/src/main/scala/zio/blocks/schema/PlatformSpecific.scala

Attributes

Companion
object
Source
Platform.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Platform

Members list

Value members

Abstract methods

def idnToAscii(idn: String): Option[String]

Translates Internationalized Domain Name to ASCII representation

Translates Internationalized Domain Name to ASCII representation

Attributes

Source
Platform.scala
def isJS: Boolean

Whether this is the JavaScript platform

Whether this is the JavaScript platform

Attributes

Source
Platform.scala
def isJVM: Boolean

Whether this is the JVM platform

Whether this is the JVM platform

Attributes

Source
Platform.scala
def name: String

Human-readable name of the platform

Human-readable name of the platform

Attributes

Source
Platform.scala

Concrete methods

final def supportsReflection: Boolean

Whether reflection APIs are available on this platform

Whether reflection APIs are available on this platform

Attributes

Source
Platform.scala