Search Results for

    Show / Hide Table of Contents

    Interface IMovable<T>

    Movable ownership

    Namespace: LibSugar
    Assembly: LibSugar.dll
    Syntax
    public interface IMovable<out T>
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    IsMoved

    Has been moved

    Declaration
    bool IsMoved { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Move()

    Move, take ownership, original value will skip destruction

    Declaration
    T Move()
    Returns
    Type Description
    T

    Extension Methods

    Sugar.Borrow<T>(T)
    Sugar.Owner<T>(T)
    Sugar.AssertEq<T>(T, T)
    Sugar.AssertNe<T>(T, T)
    Sugar.AssertSame<T>(T, T)
    Sugar.AssertNotSame<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.Seq<T>(T)
    Sugar.Seq<T>(T, T[])
    Sugar.Repeat<T>(T, Int32)
    SugarClass.AssertNull<T>(T)
    SugarClass.AssertNonNull<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © LibSugar.
    Generated by DocFX