Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions OneOf/Types/Assorted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@

namespace OneOf.Types
{
public struct Yes { }
public struct No { }
public struct Maybe { }
public readonly struct Yes { }
public readonly struct No { }
public readonly struct Maybe { }

public struct Unknown { }
public struct True { }
public struct False { }
public readonly struct Unknown { }
public readonly struct True { }
public readonly struct False { }

public struct All { }
public struct Some { }
public readonly struct All { }
public readonly struct Some { }

public struct None
public readonly struct None
{
public static OneOf<T, None> Of<T>(T t) => new None();
}

public struct NotFound { }
public readonly struct NotFound { }

public struct Success { }
public readonly struct Success { }

public struct Success<T>
public readonly struct Success<T>
{
public Success(T value)
{
Expand All @@ -32,7 +32,7 @@ public Success(T value)
public T Value { get; }
}

public struct Result<T>
public readonly struct Result<T>
{
public Result(T value)
{
Expand All @@ -41,8 +41,8 @@ public Result(T value)
public T Value { get; }
}

public struct Error { }
public struct Error<T>
public readonly struct Error { }
public readonly struct Error<T>
{
public Error(T value)
{
Expand Down