Skip to main content

dope_sys/table/token/
close.rs

1use crate::table::token::host;
2
3/// Affine close encoding retaining the descriptor domain lifetime.
4pub trait Close<'d>: Sized {
5    type Context: host::Context;
6
7    fn new(close: &<Self::Context as host::Context>::Close<'d>) -> Self;
8    fn retire(retire: &<Self::Context as host::Context>::Retire<'d>) -> Self;
9    fn raw(self) -> u64;
10    fn decode(raw: u64) -> Option<<Self::Context as host::Context>::Returned>;
11}