pub trait StaticSorted<'st>: Into<STerm<'st>> + From<STerm<'st>> {
type Inner: StaticSorted<'st>;
const AST_SORT: Sort<'static>;
// Required method
fn static_st(&self) -> &'st Storage;
// Provided methods
fn sort() -> Sort<'st> { ... }
fn new_const(st: &'st Storage, name: &str) -> Const<'st, Self> { ... }
}Expand description
A trait for statically typing STM-LIB terms.
Refer to the Sorted trait for a more general version of this trait.
Required Associated Constants§
Required Associated Types§
Sourcetype Inner: StaticSorted<'st>
type Inner: StaticSorted<'st>
The inner type of the term. This is used for Const<'st, T>
where the inner type is T.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.