hedel-rs 0.1.0

A Hierarchical Doubly Linked List.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum HedelError {
	#[error("There already is a mutable reference alive to `HedelCell`.
	Getting another mutable reference to it is Undefined Behavior.")]
	MutBorrow,
	#[error("There are one or more shared references alive to `HedelCell`.
	Getting a mutable reference to it is Undefined Behavior.")]
	MutBorrow_,
	#[error("There is a mutable reference alive to `HedelCell`.
	Getting a shared reference to it is Undefined Behavior.")]
	SharedBorrow,
	#[error("A `NonNull` pointer to the value in HedelCell was null.")]
	InvalidNonNull
}