pub trait IntoRust<T> {
// Required method
fn into_rust(self) -> T;
}
Expand description
Convert a VCL type into a Rust one.
Note that for buffer-based types (only VCL_STRING
at the moment), the lifetimes are not tied
to the Ctx
for simplicity. It may change in the future, but for now, the caller must ensure
that the Rust object doesn’t outlive the C object as it doesn’t copy it but merely points at
it.