mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
More trivial inlines
This commit is contained in:
parent
d046cb10a4
commit
e561a26695
3 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,8 @@ namespace System
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsEmpty
|
public bool IsEmpty
|
||||||
{
|
{
|
||||||
|
[Inline]
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return mLength == 0;
|
return mLength == 0;
|
||||||
|
|
|
@ -148,6 +148,7 @@ namespace System.Collections
|
||||||
|
|
||||||
public int Count
|
public int Count
|
||||||
{
|
{
|
||||||
|
[Inline]
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return mSize;
|
return mSize;
|
||||||
|
|
|
@ -20,22 +20,26 @@ namespace System
|
||||||
|
|
||||||
public T Value
|
public T Value
|
||||||
{
|
{
|
||||||
|
[Inline]
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return Unwrap();
|
return Unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Inline]
|
||||||
public static implicit operator Result<T>(T value)
|
public static implicit operator Result<T>(T value)
|
||||||
{
|
{
|
||||||
return .Ok(value);
|
return .Ok(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Inline]
|
||||||
public static implicit operator T(Result<T> result)
|
public static implicit operator T(Result<T> result)
|
||||||
{
|
{
|
||||||
return result.Unwrap();
|
return result.Unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Inline]
|
||||||
public void IgnoreError()
|
public void IgnoreError()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue