rest_mediatekdocuments

Result
in package

AbstractYes
Tags
template
template

Table of Contents

Methods

error()  : Option<string|int, E>
Get the error option value.
flatMap()  : Result<S, F>
Flat map over the success value.
map()  : Result<S, E>
Map over the success value.
mapError()  : Result<T, F>
Map over the error value.
success()  : Option<string|int, T>
Get the success option value.

Methods

error()

Get the error option value.

public abstract error() : Option<string|int, E>
Return values
Option<string|int, E>

flatMap()

Flat map over the success value.

public abstract flatMap(callable(T): Result<S, F$f) : Result<S, F>
Parameters
$f : callable(T): Result<S, F>
Tags
template
template
Return values
Result<S, F>

map()

Map over the success value.

public abstract map(callable(T): S $f) : Result<S, E>
Parameters
$f : callable(T): S
Tags
template
Return values
Result<S, E>

mapError()

Map over the error value.

public abstract mapError(callable(E): F $f) : Result<T, F>
Parameters
$f : callable(E): F
Tags
template
Return values
Result<T, F>

success()

Get the success option value.

public abstract success() : Option<string|int, T>
Return values
Option<string|int, T>

        
On this page

Search results