Search Results for

    Show / Hide Table of Contents

    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)
    Namespace: LibSugar
    Assembly: LibSugar.dll
    Syntax
    public readonly struct UResult<T, E>
        where T : struct where E : struct
    Type Parameters
    Name Description
    T
    E

    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 Description
    UResult<U, E>
    Type Parameters
    Name Description
    U
    | 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 Description
    UResult<U, E>
    Type Parameters
    Name Description
    U
    | 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 Description
    UResult<T, U>
    Type Parameters
    Name Description
    U
    | 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 Description
    UResult<U, E>
    Type Parameters
    Name Description
    U
    | 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
    Type Description
    UResult<T, E>
    | 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
    Type Description
    UResult<T, E>

    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
    Type Name Description
    UResult<T, E> left
    UResult<T, E> right
    Returns
    Type Description
    UResult<T, E>
    | 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
    Type Name Description
    UResult<T, E> left
    UResult<T, E> right
    Returns
    Type Description
    UResult<T, E>

    Extension Methods

    Sugar.Borrow<T>(T)
    Sugar.Owner<T>(T)
    Sugar.AssertEq<T>(T, T)
    Sugar.AssertNe<T>(T, T)
    Sugar.Box<T>(T)
    Sugar.Ref<T>(T)
    Sugar.Let<T, U>(T, Func<T, U>)
    Sugar.LetIf<T>(T, Boolean, Func<T, T>)
    Sugar.Also<T>(T, Action<T>)
    Sugar.AlsoIf<T>(T, Boolean, Action<T>)
    Sugar.MovableBy<T>(T, MovableBy<T>.Drop)
    Sugar.MovableByUnmanaged<T>(T, MovableByUnmanaged<T>.Drop)
    Sugar.Seq<T>(T)
    Sugar.Seq<T>(T, T[])
    Sugar.Repeat<T>(T, Int32)
    SugarStruct.Swap<T>(ref T, T)
    SugarStruct.Swap<T>(ref T, in T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © LibSugar.
    Generated by DocFX