withDefault

halotukozak.alpaca.internal.withDefault
See thewithDefault companion class
object withDefault

Attributes

Companion
class
Source
WithDefault.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Givens

Givens

inline given useDefault: [Fallback] => withDefault[Fallback, Fallback]

Infer type argument to default when no type is explicitly provided.

Infer type argument to default when no type is explicitly provided.

Type parameters

Fallback

the default type to use

Attributes

Source
WithDefault.scala

Inherited givens

inline given useProvided: [Provided, Fallback] => withDefault[Provided, Fallback]

Ignore default - use the provided type when explicitly specified.

Ignore default - use the provided type when explicitly specified.

Type parameters

Fallback

the default type (ignored)

Provided

the type that was explicitly provided

Attributes

Inherited from:
withDefaultLowImplicitPriority (hidden)
Source
WithDefault.scala