hedel_rs/
errors.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum HedelError {
5	#[error("There already is a mutable reference alive to `HedelCell`.
6	Getting another mutable reference to it is Undefined Behavior.")]
7	MutBorrow,
8	#[error("There are one or more shared references alive to `HedelCell`.
9	Getting a mutable reference to it is Undefined Behavior.")]
10	MutBorrow_,
11	#[error("There is a mutable reference alive to `HedelCell`.
12	Getting a shared reference to it is Undefined Behavior.")]
13	SharedBorrow,
14	#[error("A `NonNull` pointer to the value in HedelCell was null.")]
15	InvalidNonNull
16}