Trait varnish::vcl::convert::IntoRust

source ·
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.

Required Methods§

source

fn into_rust(self) -> T

Implementations on Foreign Types§

source§

impl<T> IntoRust<VPriv<T>> for *mut vmod_priv

source§

fn into_rust(self) -> VPriv<T>

Implementors§