Trait glib::translate::UnsafeFrom

source ·
pub trait UnsafeFrom<T> {
    // Required method
    unsafe fn unsafe_from(t: T) -> Self;
}
Expand description

Unsafe variant of the From trait.

Required Methods§

source

unsafe fn unsafe_from(t: T) -> Self

§Safety

It is the responsibility of the caller to ensure all invariants of the T hold before this is called, and that after conversion to assume nothing other than the invariants of the output. Implementors of this must ensure that the invariants of the output type hold.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnsafeFrom<u32> for char

source§

unsafe fn unsafe_from(t: u32) -> Self

Implementors§

source§

impl UnsafeFrom<GEnumValue> for EnumValue

source§

impl UnsafeFrom<GFlagsValue> for FlagsValue