Trait imgui::internal::RawCast [−][src]
Casting from/to a raw type that has the same layout and alignment as the target type
Provided methods
unsafe fn from_raw(raw: &T) -> &Self
[src]
Casts an immutable reference from the raw type
Safety
It is up to the caller to guarantee the cast is valid.
unsafe fn from_raw_mut(raw: &mut T) -> &mut Self
[src]
Casts a mutable reference from the raw type
Safety
It is up to the caller to guarantee the cast is valid.
unsafe fn raw(&self) -> &T
[src]
Casts an immutable reference to the raw type
Safety
It is up to the caller to guarantee the cast is valid.
unsafe fn raw_mut(&mut self) -> &mut T
[src]
Casts a mutable reference to the raw type
Safety
It is up to the caller to guarantee the cast is valid.