glib::types

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 ()

Source§

impl StaticType for Box<str>

Source§

impl StaticType for String

Source§

impl StaticType for Vec<GString>

Source§

impl StaticType for Vec<String>

Source§

impl StaticType for NonNull<Pointee>

Source§

impl StaticType for Path

Source§

impl StaticType for PathBuf

Source§

impl StaticType for NonZeroI8

Source§

impl StaticType for NonZeroI32

Source§

impl StaticType for NonZeroI64

Source§

impl StaticType for NonZeroU8

Source§

impl StaticType for NonZeroU32

Source§

impl StaticType for NonZeroU64

Source§

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

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

Source§

impl<T: ToValueOptional + StaticType> StaticType for Option<T>

Implementors§

Source§

impl StaticType for NormalizeMode

Source§

impl StaticType for UnicodeBreakType

Source§

impl StaticType for UnicodeScript

Source§

impl StaticType for UnicodeType

Source§

impl StaticType for Closure

Source§

impl StaticType for StrV

Source§

impl StaticType for Error

Source§

impl StaticType for InitiallyUnowned

Source§

impl StaticType for Object

Source§

impl StaticType for Binding

Source§

impl StaticType for BindingFlags

Source§

impl StaticType for BindingGroup

Available on crate feature v2_72 only.
Source§

impl StaticType for BoxedAnyObject

Source§

impl StaticType for ByteArray

Source§

impl StaticType for Bytes

Source§

impl StaticType for Checksum

Source§

impl StaticType for Date

Source§

impl StaticType for DateTime

Source§

impl StaticType for GStr

Source§

impl StaticType for GString

Source§

impl StaticType for GStringBuilder

Source§

impl StaticType for IOCondition

Source§

impl StaticType for KeyFile

Source§

impl StaticType for MainContext

Source§

impl StaticType for MainLoop

Source§

impl StaticType for MarkupParseContext

Source§

impl StaticType for ParamSpec

Source§

impl StaticType for ParamSpecBoolean

Source§

impl StaticType for ParamSpecBoxed

Source§

impl StaticType for ParamSpecChar

Source§

impl StaticType for ParamSpecDouble

Source§

impl StaticType for ParamSpecEnum

Source§

impl StaticType for ParamSpecFlags

Source§

impl StaticType for ParamSpecFloat

Source§

impl StaticType for ParamSpecGType

Source§

impl StaticType for ParamSpecInt64

Source§

impl StaticType for ParamSpecInt

Source§

impl StaticType for ParamSpecLong

Source§

impl StaticType for ParamSpecObject

Source§

impl StaticType for ParamSpecOverride

Source§

impl StaticType for ParamSpecParam

Source§

impl StaticType for ParamSpecPointer

Source§

impl StaticType for ParamSpecString

Source§

impl StaticType for ParamSpecUChar

Source§

impl StaticType for ParamSpecUInt64

Source§

impl StaticType for ParamSpecUInt

Source§

impl StaticType for ParamSpecULong

Source§

impl StaticType for ParamSpecUnichar

Source§

impl StaticType for ParamSpecValueArray

Source§

impl StaticType for ParamSpecVariant

Source§

impl StaticType for Regex

Source§

impl StaticType for SignalGroup

Available on crate feature v2_74 only.
Source§

impl StaticType for Source

Source§

impl StaticType for TimeZone

Source§

impl StaticType for TypeModule

Source§

impl StaticType for TypePlugin

Source§

impl StaticType for Uri

Available on crate feature v2_66 only.
Source§

impl StaticType for ValueArray

Source§

impl StaticType for VariantDict

Source§

impl StaticType for VariantTy

Source§

impl StaticType for VariantType

Source§

impl StaticType for BoxedValue

Source§

impl StaticType for Variant

Source§

impl StaticType for ILong

Source§

impl StaticType for Type

Source§

impl StaticType for ULong

Source§

impl StaticType for Pointer

Source§

impl<'input> StaticType for MatchInfo<'input>