Rustly.Types
10.6.1
See the version list below for details.
dotnet add package Rustly.Types --version 10.6.1
NuGet\Install-Package Rustly.Types -Version 10.6.1
<PackageReference Include="Rustly.Types" Version="10.6.1" />
<PackageVersion Include="Rustly.Types" Version="10.6.1" />
<PackageReference Include="Rustly.Types" />
paket add Rustly.Types --version 10.6.1
#r "nuget: Rustly.Types, 10.6.1"
#:package Rustly.Types@10.6.1
#addin nuget:?package=Rustly.Types&version=10.6.1
#tool nuget:?package=Rustly.Types&version=10.6.1
Rustly.Types
Core types for the Rustly ecosystem: Option<T>, Result<T, E>, Unit, EnumValueAttribute, OptionTypeConverter, and EnumValueTypeConverter.
Installation
dotnet add package Rustly.Types --version 10.6.1
Core Types
| Type | Description |
|---|---|
Option<T> |
Represents an optional value (Some or None) |
Result<T, E> |
Represents success (Ok) or failure (Err) |
Unit |
A zero-size type for void-equivalent returns |
EnumValueAttribute |
Maps enum members to string values |
OptionTypeConverter |
TypeConverter for Option<T> |
EnumValueTypeConverter |
TypeConverter for enums with EnumValueAttribute |
Usage
Option<T>
Option<int> some = Option<int>.Some(42);
Option<int> none = Option<int>.None();
string result = some.Match(
value => $"Got {value}",
() => "Nothing"
);
// result = "Got 42"
Result<T, E>
Result<int, string> ok = Result<int, string>.Ok(42);
Result<int, string> err = Result<int, string>.Err("failed");
string output = ok.Match(
value => $"Success: {value}",
error => $"Error: {error}"
);
// output = "Success: 42"
EnumValueAttribute
public enum Color
{
[EnumValue("red-color")]
Red,
[EnumValue("blue-color")]
Blue
}
Version
10.6.1
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Rustly.Types:
| Package | Downloads |
|---|---|
|
Rustly
Rust-inspired functional programming toolkit for .NET. Includes Option, Result, async pipelines, LINQ, analyzers, and source generators. One package for the complete experience. |
|
|
Rustly.Extensions
Extension methods for Rustly types: Flatten, Transpose, ZipWith, LINQ query syntax, TryFirst, TryGet, Collect, Partition. Part of the Rustly ecosystem. |
|
|
Rustly.Prelude
Static factory helpers for Rustly: Ok(), Err(), Some(), None(). Auto-imported via using static. Part of the Rustly ecosystem. |
|
|
Rustly.Async
Async pipeline for Rustly Result and Option: MapAsync, AndThenAsync, MatchAsync, Try/TryAsync. Railway-oriented async C#. Part of the Rustly ecosystem. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.6.4 | 973 | 4/28/2026 |
| 10.6.3 | 366 | 4/16/2026 |
| 10.6.2 | 394 | 4/16/2026 |
| 10.6.2-rc6 | 386 | 4/16/2026 |
| 10.6.2-rc5 | 430 | 4/15/2026 |
| 10.6.1 | 303 | 4/15/2026 |
| 10.5.0 | 356 | 4/15/2026 |
| 10.4.0 | 358 | 4/15/2026 |
| 10.3.1 | 319 | 4/14/2026 |
EN: 10.6.1 — Added [EnumValueSerializer] attribute for source generators. AOT annotations on reflection methods. | RU: 10.6.1 — Добавлен атрибут [EnumValueSerializer] для source generators. AOT аннотации на reflection методах.