use crate::OwnedDescriptor;
use crate::RawDescriptor;
pub trait IntoRawDescriptor {
fn into_raw_descriptor(self) -> RawDescriptor;
}
pub trait AsRawDescriptor {
fn as_raw_descriptor(&self) -> RawDescriptor;
}
pub trait FromRawDescriptor {
unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self;
}
impl IntoRawDescriptor for i64 {
fn into_raw_descriptor(self) -> RawDescriptor {
self as RawDescriptor
}
}
pub trait AsBorrowedDescriptor {
fn as_borrowed_descriptor(&self) -> &OwnedDescriptor;
}