Trait imgui::internal::RawWrapper[][src]

pub trait RawWrapper {
    type Raw;
    unsafe fn raw(&self) -> &Self::Raw;
unsafe fn raw_mut(&mut self) -> &mut Self::Raw; }

Marks a type as a transparent wrapper over a raw type

Associated Types

type Raw[src]

Wrapped raw type

Loading content...

Required methods

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

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.

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

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.

Loading content...

Implementors

impl RawWrapper for DrawList[src]

type Raw = ImDrawList

Loading content...