Search Results for

    Show / Hide Table of Contents

    Struct Movable<T>

    Implements
    IMovable<Movable<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 Movable<T> : IMovable<Movable<T>>, IDisposable where T : IDisposable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    Movable(T)

    Declaration
    public Movable(T value)
    Parameters
    Type Name Description
    T value

    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 Movable<T> Move()
    Returns
    Type Description
    Movable<T>

    Operators

    | Improve this Doc View Source

    Implicit(T to Movable<T>)

    Declaration
    public static implicit operator Movable<T>(T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Movable<T>
    | Improve this Doc View Source

    Implicit(Movable<T> to T)

    Declaration
    public static implicit operator T(Movable<T> self)
    Parameters
    Type Name Description
    Movable<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