New controls, main view
This commit is contained in:
13
src/Library/TerminalUI/Models/Option.cs
Normal file
13
src/Library/TerminalUI/Models/Option.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace TerminalUI.Models;
|
||||
|
||||
public readonly ref struct Option<T>
|
||||
{
|
||||
public readonly T Value;
|
||||
public readonly bool IsSome;
|
||||
|
||||
public Option(T value, bool isSome)
|
||||
{
|
||||
Value = value;
|
||||
IsSome = isSome;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user