beet_core 0.0.8

Core utilities and types for other beet crates
1
2
3
4
5
6
7
8
9
10
11
12
use crate::prelude::*;
use extend::ext;

#[ext]
pub impl<T> Option<T> {
	fn or_err(self) -> Result<T> {
		match self {
			Some(value) => Ok(value),
			None => Err(bevyhow!("Expected Some")),
		}
	}
}