My Project
 
All Classes Namespaces Files Functions Variables Properties
Loading...
Searching...
No Matches
HyperTrack.HyperTrack.Result< T, TE > Class Template Reference
Inheritance diagram for HyperTrack.HyperTrack.Result< T, TE >:

Public Member Functions

HyperTrack.Result< U, TE > Map< U > (Func< T, U > f)
 
HyperTrack.Result< T, TF > MapFailure< TF > (Func< TE, TF > f)
 
override string ToString ()
 
bool Equals (Result< T, TE >? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static HyperTrack.Result< T, TE > Ok (T success)
 
static HyperTrack.Result< T, TE > Error (TE error)
 
static bool operator== (Result< T, TE >? left, Result< T, TE >? right)
 
static bool operator!= (Result< T, TE >? left, Result< T, TE >? right)
 

Properties

T? Success [get]
 
TE? Failure [get]
 
bool IsSuccess [get]
 

Private Member Functions

 Result (T success)
 
 Result (TE error)
 

Static Private Member Functions

static bool ValueEquals< TValue > (TValue? left, TValue? right)
 

Member Function Documentation

◆ Equals() [1/2]

override bool HyperTrack.HyperTrack.Result< T, TE >.Equals ( object? obj)

◆ Equals() [2/2]

bool HyperTrack.HyperTrack.Result< T, TE >.Equals ( Result< T, TE >? other)
inline

◆ Error()

static HyperTrack.Result< T, TE > HyperTrack.HyperTrack.Result< T, TE >.Error ( TE error)
inlinestatic

◆ GetHashCode()

override int HyperTrack.HyperTrack.Result< T, TE >.GetHashCode ( )

◆ Map< U >()

HyperTrack.Result< U, TE > HyperTrack.HyperTrack.Result< T, TE >.Map< U > ( Func< T, U > f)
inline

◆ MapFailure< TF >()

HyperTrack.Result< T, TF > HyperTrack.HyperTrack.Result< T, TE >.MapFailure< TF > ( Func< TE, TF > f)
inline

◆ Ok()

static HyperTrack.Result< T, TE > HyperTrack.HyperTrack.Result< T, TE >.Ok ( T success)
inlinestatic

◆ operator!=()

static bool HyperTrack.HyperTrack.Result< T, TE >.operator!= ( Result< T, TE >? left,
Result< T, TE >? right )
static

◆ operator==()

static bool HyperTrack.HyperTrack.Result< T, TE >.operator== ( Result< T, TE >? left,
Result< T, TE >? right )
static

◆ Result() [1/2]

HyperTrack.HyperTrack.Result< T, TE >.Result ( T success)
inlineprivate

◆ Result() [2/2]

HyperTrack.HyperTrack.Result< T, TE >.Result ( TE error)
inlineprivate

◆ ToString()

override string HyperTrack.HyperTrack.Result< T, TE >.ToString ( )
inline

◆ ValueEquals< TValue >()

static bool HyperTrack.HyperTrack.Result< T, TE >.ValueEquals< TValue > ( TValue? left,
TValue? right )
inlinestaticprivate

Property Documentation

◆ Failure

TE? HyperTrack.HyperTrack.Result< T, TE >.Failure
get

◆ IsSuccess

bool HyperTrack.HyperTrack.Result< T, TE >.IsSuccess
get

◆ Success

T? HyperTrack.HyperTrack.Result< T, TE >.Success
get

The documentation for this class was generated from the following file: