refactor: finish rust parse and add testbench for it.

This commit is contained in:
2025-06-26 10:27:33 +08:00
parent a6382d6a22
commit e166dc41ac
11 changed files with 229 additions and 26 deletions

View File

@ -11,7 +11,7 @@ namespace yycc::rust::option {
using Option = std::optional<T>;
template<typename OptionType, typename... Args>
OptionType Some(Args &&... args) {
OptionType Some(Args &&...args) {
return OptionType(std::in_place, std::forward<Args>(args)...);
}
@ -20,4 +20,4 @@ namespace yycc::rust::option {
return OptionType(std::nullopt);
}
}
} // namespace yycc::rust::option