trident_syscall_stubs_v1/lib.rs
1pub mod syscall_stubs;
2pub use syscall_stubs::*;
3
4pub mod invoke_context;
5pub use invoke_context::*;
6
7// Trait to convert between types that are not directly compatible
8pub trait TridentTryFrom<T>: Sized {
9 /// The type returned in the event of a conversion error.
10 type Error;
11
12 /// Performs the conversion.
13 fn try_from_custom(value: T) -> Result<Self, Self::Error>;
14}