withDefault

halotukozak.alpaca.internal.withDefault
See thewithDefault companion class

Attributes

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

Members list

Givens

Givens

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

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

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

Type parameters

Default

the default type to use

Attributes

Source
WithDefault.scala

Inherited givens

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

Ignore default - use the provided type when explicitly specified.

Ignore default - use the provided type when explicitly specified.

Type parameters

Default

the default type (ignored)

Provided

the type that was explicitly provided

Attributes

Inherited from:
withDefaultLowImplicitPriority
Source
WithDefault.scala