Barotrauma Client Doc
|
Classes | |
struct | UnspecifiedNone |
Public Member Functions | |
bool | IsSome () |
bool | IsNone () |
bool | TryUnwrap< T1 > ([NotNullWhen(returnValue:true)] out T1? outValue) |
bool | TryUnwrap ([NotNullWhen(returnValue:true)] out T? outValue) |
Option< TType > | Select< TType > (Func< T, TType > selector) |
Option< TType > | Bind< TType > (Func< T, Option< TType >> binder) |
T | Match (Func< T, T > some, Func< T > none) |
void | Match (Action< T > some, Action none) |
T | Fallback (T fallback) |
Option< T > | Fallback (Option< T > fallback) |
override bool | Equals (object? obj) |
bool | ValueEquals (T otherValue) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static Option< T > | Some (T value) |
static bool | operator== (Option< T > a, Option< T > b) |
static bool | operator!= (Option< T > a, Option< T > b) |
static Option< T > | None () |
static implicit | operator Option< T > (in Option.UnspecifiedNone _) |
static Option< T > | Some< T > (T value) |
Properties | |
static UnspecifiedNone | None [get] |
Option<TType> Barotrauma.Option< T >.Bind< TType > | ( | Func< T, Option< TType >> | binder | ) |
TType | : | notnull | |
TType | : | TryUnwrap | |
TType | : | out | |
TType | : | T | |
TType | : | selfValue | |
TType | : | binder | |
TType | : | selfValue | |
TType | : | Option.None |
override bool Barotrauma.Option< T >.Equals | ( | object? | obj | ) |
Option<T> Barotrauma.Option< T >.Fallback | ( | Option< T > | fallback | ) |
T Barotrauma.Option< T >.Fallback | ( | T | fallback | ) |
override int Barotrauma.Option< T >.GetHashCode | ( | ) |
bool Barotrauma.Option< T >.IsNone | ( | ) |
bool Barotrauma.Option< T >.IsSome | ( | ) |
void Barotrauma.Option< T >.Match | ( | Action< T > | some, |
Action | none | ||
) |
T Barotrauma.Option< T >.Match | ( | Func< T, T > | some, |
Func< T > | none | ||
) |
|
static |
|
static |
|
static |
|
static |
Option<TType> Barotrauma.Option< T >.Select< TType > | ( | Func< T, TType > | selector | ) |
TType | : | notnull | |
TType | : | TryUnwrap | |
TType | : | out | |
TType | : | T | |
TType | : | selfValue | |
TType | : | Option.Some | |
TType | : | selector | |
TType | : | selfValue | |
TType | : | Option.None |
|
static |
|
static |
T | : | notnull | |
T | : | Option<T> | |
T | : | Some | |
T | : | value |
override string Barotrauma.Option< T >.ToString | ( | ) |
bool Barotrauma.Option< T >.TryUnwrap | ( | [NotNullWhen(returnValue:true)] out T? | outValue | ) |
bool Barotrauma.Option< T >.TryUnwrap< T1 > | ( | [NotNullWhen(returnValue: true)] out T1? | outValue | ) |
bool Barotrauma.Option< T >.ValueEquals | ( | T | otherValue | ) |
|
staticget |