Package

scala.scalanative

util

Permalink

package util

Linear Supertypes
AnyRef, Any
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. final class ShowBuilder extends AnyRef

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

    Permalink

Value Members

  1. object Scope

    Permalink
  2. object ScopedVar

    Permalink
  3. object UnreachableException extends Exception with Product with Serializable

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

    Permalink

    Acquire given resource in implicit scope.

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

    Permalink

    Defer cleanup until the scope closes.

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

    Permalink

    Print running time of closure to stdout.

  7. def unreachable: Nothing

    Permalink

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

  8. 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