Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/Error.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace UnmanagedResult;

public readonly struct Error<TEnum> : IError
public readonly struct Error<TEnum> : ICodeError<TEnum>
where TEnum : unmanaged, Enum
{
public TEnum Code { get; }
Expand Down
12 changes: 12 additions & 0 deletions src/ICodeError.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) 2026 Viktor Stojanović. All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.

using System;

namespace UnmanagedResult;

public interface ICodeError<TEnum> : IError
where TEnum : unmanaged, Enum
{
public TEnum Code { get; }
}
Loading