implicit final class HasSyntax[Self <: Has[_]] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HasSyntax
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new HasSyntax(self: Self)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +[B](b: B)(implicit tag: Tagged[B]): Self with Has[B]
- def ++[B <: Has[_]](that: B)(implicit tagged: Tagged[B]): Self with B
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
add[B](b: B)(implicit tagged: Tagged[B], ev: MustNotHave[Self, B]): Self with Has[B]
Adds a service to the environment.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
get[B](implicit ev: <:<[Self, Has[_ <: B]], tagged: Tagged[B]): B
Retrieves a service from the environment.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
prune(implicit tagged: Tagged[Self]): Self
Prunes the environment to the set of services statically known to be contained within it.
-
def
toString(): String
- Definition Classes
- Any
-
def
union[B <: Has[_]](that: B)(implicit tagged: Tagged[B]): Self with B
Combines this environment with the specified environment.
-
def
unionAll[B <: Has[_]](that: B): Self with B
Combines this environment with the specified environment.
Combines this environment with the specified environment. In the event of service collisions, which may not be reflected in statically known types, the right hand side will be preferred.
- def upcast[A, B, C, D, E](implicit arg0: Tagged[A], arg1: Tagged[B], arg2: Tagged[C], arg3: Tagged[D], arg4: Tagged[E], ev: <:<[Self, Has[A] with Has[B] with Has[C] with Has[D] with Has[E]]): Has[A] with Has[B] with Has[C] with Has[D] with Has[E]
- def upcast[A, B, C, D](implicit arg0: Tagged[A], arg1: Tagged[B], arg2: Tagged[C], arg3: Tagged[D], ev: <:<[Self, Has[A] with Has[B] with Has[C] with Has[D]]): Has[A] with Has[B] with Has[C] with Has[D]
- def upcast[A, B, C](implicit arg0: Tagged[A], arg1: Tagged[B], arg2: Tagged[C], ev: <:<[Self, Has[A] with Has[B] with Has[C]]): Has[A] with Has[B] with Has[C]
- def upcast[A, B](implicit arg0: Tagged[A], arg1: Tagged[B], ev: <:<[Self, Has[A] with Has[B]]): Has[A] with Has[B]
- def upcast[A](implicit arg0: Tagged[A], ev: <:<[Self, Has[A]]): Has[A]
-
def
update[B](f: (B) ⇒ B)(implicit arg0: Tagged[B], ev: MustHave[Self, B]): Self
Updates a service in the environment.