Search Results for

    Show / Hide Table of Contents

    Struct MovableBy<T>

    Implements
    IMovable<MovableBy<T>>
    System.IDisposable
    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 struct MovableBy<T> : IMovable<MovableBy<T>>, IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    MovableBy(T, MovableBy<T>.Drop)

    Declaration
    public MovableBy(T value, MovableBy<T>.Drop drop)
    Parameters
    Type Name Description
    T value
    MovableBy.Drop<> drop

    Fields

    | Improve this Doc View Source

    Value

    Declaration
    public T Value
    Field Value
    Type Description
    T

    Properties

    | Improve this Doc View Source

    IsMoved

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

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Move()

    Declaration
    public MovableBy<T> Move()
    Returns
    Type Description
    MovableBy<T>

    Operators

    | Improve this Doc View Source

    Implicit(MovableBy<T> to T)

    Declaration
    public static implicit operator T(MovableBy<T> self)
    Parameters
    Type Name Description
    MovableBy<T> self
    Returns
    Type Description
    T

    Implements

    IMovable<T>
    System.IDisposable

    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.Movable<T>(T)
    Sugar.MovableBy<T>(T, MovableBy<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