Struct UResult<T, E>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: LibSugar.dll
Syntax
public readonly struct UResult<T, E>
where T : struct where E : struct
Type Parameters
Methods
|
Improve this Doc
View Source
And<U>(UResult<U, E>)
Declaration
public readonly UResult<U, E> And<U>(UResult<U, E> o)
where U : struct
Parameters
Type |
Name |
Description |
UResult<U, E> |
o |
|
Returns
Type Parameters
|
Improve this Doc
View Source
And<U>(Func<UResult<U, E>>)
Declaration
public readonly UResult<U, E> And<U>(Func<UResult<U, E>> o)
where U : struct
Parameters
Type |
Name |
Description |
System.Func<UResult<U, E>> |
o |
|
Returns
Type Parameters
|
Improve this Doc
View Source
MapErr<U>(Func<E, U>)
Declaration
public readonly UResult<T, U> MapErr<U>(Func<E, U> f)
where U : struct
Parameters
Type |
Name |
Description |
System.Func<E, U> |
f |
|
Returns
Type Parameters
|
Improve this Doc
View Source
MapOk<U>(Func<T, U>)
Declaration
public readonly UResult<U, E> MapOk<U>(Func<T, U> f)
where U : struct
Parameters
Type |
Name |
Description |
System.Func<T, U> |
f |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Or(UResult<T, E>)
Declaration
public readonly UResult<T, E> Or(UResult<T, E> o)
Parameters
Type |
Name |
Description |
UResult<T, E> |
o |
|
Returns
|
Improve this Doc
View Source
Or(Func<UResult<T, E>>)
Declaration
public readonly UResult<T, E> Or(Func<UResult<T, E>> o)
Parameters
Type |
Name |
Description |
System.Func<UResult<T, E>> |
o |
|
Returns
Operators
|
Improve this Doc
View Source
BitwiseAnd(UResult<T, E>, UResult<T, E>)
Declaration
public static UResult<T, E> operator &(UResult<T, E> left, UResult<T, E> right)
Parameters
Returns
|
Improve this Doc
View Source
BitwiseOr(UResult<T, E>, UResult<T, E>)
Declaration
public static UResult<T, E> operator |(UResult<T, E> left, UResult<T, E> right)
Parameters
Returns
Extension Methods
Sugar.Borrow<T>(T)
Sugar.Owner<T>(T)