1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Term;

/// Type that can be turned into a [`Term`].
pub trait IntoTerm {
	/// Node identifier type.
	type Id;

	/// Literal type.
	type Literal;

	/// Turns the value into a [`Term`].
	fn into_term(self) -> Term<Self::Id, Self::Literal>;
}