pub trait Cryptic: Sized {
// Required method
fn cryptic(object: TracedObject) -> Result<Self, CryptError>;
}Expand description
An object that can be parsed from a crypt file.
A derive macro exists for this type and is expected to be used over manually implementing it.
Required Methods§
Sourcefn cryptic(object: TracedObject) -> Result<Self, CryptError>
fn cryptic(object: TracedObject) -> Result<Self, CryptError>
Attempts to convert an AST from a crypt file into a desired type.
In most cases it is recommended to use CryptParserServer which will automatically call this method an opened file.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".