serde-generate 0.33.0

Library to generate (de)serialization code in multiple languages
Documentation
// Copyright (c) Facebook, Inc. and its affiliates
// SPDX-License-Identifier: MIT OR Apache-2.0

using System;

namespace Serde
{
    ///<summary>
    /// Analogous to Rust's Unit type `()`.
    ///</summary>
    public readonly struct Unit : IEquatable<Unit>
    {
        public override bool Equals(object obj) => obj is Unit unit;

        public bool Equals(Unit other) => true;

        public static bool operator==(Unit l, Unit r) => true;

        public static bool operator!=(Unit l, Unit r) => false;

        public override int GetHashCode() => 793253941;
    }
}