implicit class Ops[V] extends AnyRef
- Alphabetic
- By Inheritance
- Ops
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
asErr[T]: Err[V, T]
Wrap arbitrary value in Err
Wrap arbitrary value in Err
Examples
>>> import dev.jsbrucker.result._ >>> import dev.jsbrucker.result.extensions.all._ >>> "Error".asErr == Err("Error") true
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOk[E]: Ok[E, V]
Wrap arbitrary value in Ok
Wrap arbitrary value in Ok
Examples
>>> import dev.jsbrucker.result._ >>> import dev.jsbrucker.result.extensions.all._ >>> 1.asOk == Ok(1) true
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toResult[E, T](implicit toResult: ToResult[E, T, V]): Result[E, T]
Convert value to
Result
Convert value to
Result
Examples
The
ToResult
type class is predefined forEither
andTry
>>> import dev.jsbrucker.result._ >>> import dev.jsbrucker.result.extensions.all._ >>> Right(1).toResult == Ok(1) true >>> Left("Some Error").toResult == Err("Some Error") true
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated