Trait arcdps_imgui::internal::RawWrapper

source ·
pub trait RawWrapper {
    type Raw;

    // Required methods
    unsafe fn raw(&self) -> &Self::Raw;
    unsafe fn raw_mut(&mut self) -> &mut Self::Raw;
}
Expand description

Marks a type as a transparent wrapper over a raw type

Required Associated Types§

source

type Raw

Wrapped raw type

Required Methods§

source

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

Returns an immutable reference to the wrapped raw value

§Safety

It is up to the caller to use the returned raw reference without causing undefined behaviour or breaking safety rules.

source

unsafe fn raw_mut(&mut self) -> &mut Self::Raw

Returns a mutable reference to the wrapped raw value

§Safety

It is up to the caller to use the returned mutable raw reference without causing undefined behaviour or breaking safety rules.

Implementors§

source§

impl RawWrapper for DrawList

source§

type Raw = ImDrawList