mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 21:36:00 +02:00
added IParseable interface and applied it to all applicable types
This commit is contained in:
parent
3e8d90d300
commit
0a6062ba02
18 changed files with 169 additions and 18 deletions
11
BeefLibs/corlib/src/IParseable.bf
Normal file
11
BeefLibs/corlib/src/IParseable.bf
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace System;
|
||||
|
||||
interface IParseable<T>
|
||||
{
|
||||
public static Result<T> Parse(StringView val);
|
||||
}
|
||||
|
||||
interface IParseable<T, TErr>
|
||||
{
|
||||
public static Result<T,TErr> Parse(StringView val);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue