Class UResult<A>
Inheritance
System.Object
UResult<A>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LibSugar
Assembly: LibSugar.dll
Syntax
public static class UResult<A>
where A : struct
Type Parameters
| Name | Description |
|---|---|
| A |
Methods
| Improve this Doc View SourceMakeErr<E>(E)
Declaration
public static UResult<A, E> MakeErr<E>(E v)
where E : struct
Parameters
| Type | Name | Description |
|---|---|---|
| E | v |
Returns
| Type | Description |
|---|---|
| UResult<A, E> |
Type Parameters
| Name | Description |
|---|---|
| E |
MakeOk<T>(T)
Declaration
public static UResult<T, A> MakeOk<T>(T v)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T | v |
Returns
| Type | Description |
|---|---|
| UResult<T, A> |
Type Parameters
| Name | Description |
|---|---|
| T |