AsRaw

Trait AsRaw 

Source
pub trait AsRaw {
    type Raw: Unpin + 'static;

    // Required method
    unsafe fn as_raw(&self) -> Self::Raw;
}
Expand description

资源的原始形式的表示。通常来自底层库的定义。

Required Associated Types§

Source

type Raw: Unpin + 'static

原始形式的类型。

Required Methods§

Source

unsafe fn as_raw(&self) -> Self::Raw

§Safety

The caller must ensure that the returned item is dropped before the original item.

Implementors§