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 <: Has[_]](that: B)(implicit arg0: zio.Tag[B]): Self with B
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
add[B](b: B)(implicit tagged: zio.Tag[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: zio.Tag[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: zio.Tag[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 arg0: zio.Tag[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
update[B](f: (B) ⇒ B)(implicit arg0: zio.Tag[B], ev: MustHave[Self, B]): Self
Updates a service in the environment.