Package

scala.scalanative

util

Permalink

package util

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Resource = AutoCloseable

    Permalink

    Scope-managed resource.

  2. trait Scope extends AnyRef

    Permalink

    Scoped implicit lifetime.

    Scoped implicit lifetime.

    The main idea behind the Scope is to encode resource lifetimes through a concept of an implicit scope. Scopes are necessary to acquire resources. They are responsible for disposal of the resources once the evaluation exits the demarkated block in the source code.

    See https://www.youtube.com/watch?v=MV2eJkwarT4 for details.

    Annotations
    @implicitNotFound( ... )
  3. class ScopedVar[A] extends AnyRef

    Permalink
  4. sealed trait ShowBuilder extends AnyRef

    Permalink
  5. final case class UnsupportedException(msg: String) extends Exception with Product with Serializable

    Permalink

Value Members

  1. object And

    Permalink
  2. object Scope

    Permalink
  3. object ScopedVar

    Permalink
  4. object ShowBuilder

    Permalink
  5. object Stats

    Permalink
  6. object StringUtils

    Permalink
  7. object UnreachableException extends Exception with Product with Serializable

    Permalink
  8. def acquire[R <: Resource](res: R)(implicit in: Scope): R

    Permalink

    Acquire given resource in implicit scope.

  9. def defer(f: ⇒ Unit)(implicit in: Scope): Unit

    Permalink

    Defer cleanup until the scope closes.

  10. def partitionBy[T](elems: Seq[T], batches: Int)(f: (T) ⇒ Any): Map[Int, Seq[T]]

    Permalink
  11. def partitionBy[T](elems: Seq[T])(f: (T) ⇒ Any): Map[Int, Seq[T]]

    Permalink
  12. def procs: Int

    Permalink
  13. def time[T](msg: String)(f: ⇒ T): T

    Permalink

    Print running time of closure to stdout.

  14. def unreachable: Nothing

    Permalink

    Marker methods, called whenever a specific control-flow branch should never happen.

  15. def unsupported(s: String = ""): Nothing

    Permalink
  16. def unsupported(v: Any): Nothing

    Permalink

    Marker method, called whenever a specific control-flow branch is not supported.

Inherited from AnyRef

Inherited from Any

Ungrouped