meby

Crates.iomeby
lib.rsmeby
version0.1.0
created_at2025-12-25 09:19:17.930045+00
updated_at2025-12-25 09:19:17.930045+00
descriptionZero dependency crate that provides a Meby<_,_> type for easier handling of Option> and Result,_>. Requires #![feature(try_trait_v2)]
homepage
repositoryhttps://github.com/silvenlily/meby-rs
max_upload_size
id2004378
size9,875
Lily Young (silvenlily)

documentation

README

Meby

[repo]

Provides a Meby<Res,Err> type that can be: Yes<Res> Oops<Err> or Nope
Effectively an easier to handle Option<Result> or Result<Option>
Meby can be converted back and forth between Option<Result> and Result<Option>

Meby supports the ? operator, but requires the unstable try_trait_v2 feature this is gated behind the try_trait_v2 feature which is enabled by default. Disable default features to prevent this.

The variants of Meby (Yes, Nope & Oops) are named as such to prevent conflicting with Ok Err Some and None. Yes the names are a little silly. I like it that way.

Meby has no dependencies and is no_std compatible (only uses things from core).

Meby currently has all the convince functions I use regularly. It does not have all the convenience functions that Option or Result have. Feel free to make a pull request.

Commit count: 0

cargo fmt