Trait StaticType

Source
pub trait StaticType {
    // Required method
    fn static_type() -> Type;
}
Expand description

Types that are supported by GLib dynamic typing.

Required Methods§

Source

fn static_type() -> Type

Returns the type identifier of Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StaticType for bool

Source§

impl StaticType for f32

Source§

impl StaticType for f64

Source§

impl StaticType for i8

Source§

impl StaticType for i32

Source§

impl StaticType for i64

Source§

impl StaticType for str

Source§

impl StaticType for u8

Source§

impl StaticType for u32

Source§

impl StaticType for u64

Source§

impl StaticType for String

Source§

impl StaticType for Vec<GString>

Source§

impl StaticType for Vec<String>

Source§

impl<'a> StaticType for [&'a str]

Source§

impl<'a, T: ?Sized + StaticType> StaticType for &'a T

Source§

impl<'a, T: ?Sized + StaticType> StaticType for &'a mut T

Implementors§