Page MenuHomeDevCentral

Introduce Option class with Some and None types
ClosedPublic

Authored by dereckson on Oct 12 2025, 13:44.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 31, 08:57
Unknown Object (File)
Sun, Jan 25, 18:21
Unknown Object (File)
Fri, Jan 23, 02:40
Unknown Object (File)
Wed, Jan 21, 05:06
Unknown Object (File)
Tue, Jan 20, 19:20
Unknown Object (File)
Tue, Jan 20, 08:36
Unknown Object (File)
Mon, Jan 19, 23:43
Unknown Object (File)
Sun, Jan 18, 05:07
Subscribers
None

Details

Summary

This change adds an Option class, inspired by Rust generic type Option,
using the same pattern as the Result class in 8b2b9129c24.

First use case is to introduce optional string setting in saas-mediawiki.

Ref T2140

Test Plan

New unit tests to cover fully the Some and None classes.

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Skipped
Unit
Tests Passed
Branch
rust-option
Build Status
Buildable 5996
Build 6278: arc lint + arc unit