Skip to main content

dope_sys/ring/create/
build.rs

1use crate::memory;
2
3/// An unbound construction result can acquire its payload owner exactly once.
4pub trait Build<P>: Sized {
5    type Context;
6    type Cleanup: memory::Cleanup<P>;
7
8    fn close(self, context: Self::Context) -> Result<P, Self::Cleanup>;
9    fn into_result(self) -> Result<P, Self::Cleanup>;
10}