daemonic_error 0.1.0

Errors that compose, predict, and leave receipts - Compose: algebraic combination (in active development) - Predict: Glass/Severity - Receipts: audit trail, position, checksum - Reflection: Runtime Reflection through TopologySegment (in active development)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::daemonic::SymbolicAnchor;

/// Meaning through language/text.
/// TODO: methods for semantic comparison, translation, context binding
pub trait SemanticAnchor: SymbolicAnchor
	where
		Self: Sized,
{
	/// Creates a new SemanticAnchor (distinct from a TopologySegment) that contains a stringified 
	/// variant of whatever "self" is at call sight
	fn new_anchor(&self) -> Self where Self: for<'a> From<&'a str>
		// where
		// 	Self: for<'a> From<&'a str>,
	{
		stringify!(Self).into()
	}
}