pub trait StaticType {
// Required method
fn static_type() -> Type;
}
Expand description
Types that are supported by GLib dynamic typing.
Required Methods§
Sourcefn static_type() -> Type
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
impl StaticType for bool
fn static_type() -> Type
Source§impl StaticType for f32
impl StaticType for f32
fn static_type() -> Type
Source§impl StaticType for f64
impl StaticType for f64
fn static_type() -> Type
Source§impl StaticType for i8
impl StaticType for i8
fn static_type() -> Type
Source§impl StaticType for i32
impl StaticType for i32
fn static_type() -> Type
Source§impl StaticType for i64
impl StaticType for i64
fn static_type() -> Type
Source§impl StaticType for str
impl StaticType for str
fn static_type() -> Type
Source§impl StaticType for u8
impl StaticType for u8
fn static_type() -> Type
Source§impl StaticType for u32
impl StaticType for u32
fn static_type() -> Type
Source§impl StaticType for u64
impl StaticType for u64
fn static_type() -> Type
Source§impl StaticType for ()
impl StaticType for ()
fn static_type() -> Type
Source§impl StaticType for Box<str>
impl StaticType for Box<str>
fn static_type() -> Type
Source§impl StaticType for String
impl StaticType for String
fn static_type() -> Type
Source§impl StaticType for Vec<GString>
impl StaticType for Vec<GString>
fn static_type() -> Type
Source§impl StaticType for Vec<String>
impl StaticType for Vec<String>
fn static_type() -> Type
Source§impl StaticType for NonNull<Pointee>
impl StaticType for NonNull<Pointee>
fn static_type() -> Type
Source§impl StaticType for Path
impl StaticType for Path
fn static_type() -> Type
Source§impl StaticType for PathBuf
impl StaticType for PathBuf
fn static_type() -> Type
Source§impl StaticType for NonZeroI8
impl StaticType for NonZeroI8
fn static_type() -> Type
Source§impl StaticType for NonZeroI32
impl StaticType for NonZeroI32
fn static_type() -> Type
Source§impl StaticType for NonZeroI64
impl StaticType for NonZeroI64
fn static_type() -> Type
Source§impl StaticType for NonZeroU8
impl StaticType for NonZeroU8
fn static_type() -> Type
Source§impl StaticType for NonZeroU32
impl StaticType for NonZeroU32
fn static_type() -> Type
Source§impl StaticType for NonZeroU64
impl StaticType for NonZeroU64
fn static_type() -> Type
Source§impl<'a> StaticType for &'a [GStringPtr]
impl<'a> StaticType for &'a [GStringPtr]
fn static_type() -> Type
Source§impl<'a> StaticType for [&'a str]
impl<'a> StaticType for [&'a str]
fn static_type() -> Type
Source§impl<'a, T: ?Sized + StaticType> StaticType for &'a T
impl<'a, T: ?Sized + StaticType> StaticType for &'a T
fn static_type() -> Type
Source§impl<'a, T: ?Sized + StaticType> StaticType for &'a mut T
impl<'a, T: ?Sized + StaticType> StaticType for &'a mut T
fn static_type() -> Type
Source§impl<T: ToValueOptional + StaticType> StaticType for Option<T>
impl<T: ToValueOptional + StaticType> StaticType for Option<T>
fn static_type() -> Type
Implementors§
impl StaticType for NormalizeMode
impl StaticType for UnicodeBreakType
impl StaticType for UnicodeScript
impl StaticType for UnicodeType
impl StaticType for Closure
impl StaticType for StrV
impl StaticType for Error
impl StaticType for InitiallyUnowned
impl StaticType for Object
impl StaticType for Binding
impl StaticType for BindingFlags
impl StaticType for BindingGroup
Available on crate feature
v2_72
only.impl StaticType for BoxedAnyObject
impl StaticType for ByteArray
impl StaticType for Bytes
impl StaticType for Checksum
impl StaticType for Date
impl StaticType for DateTime
impl StaticType for GStr
impl StaticType for GString
impl StaticType for GStringBuilder
impl StaticType for IOCondition
impl StaticType for KeyFile
impl StaticType for MainContext
impl StaticType for MainLoop
impl StaticType for MarkupParseContext
impl StaticType for ParamSpec
impl StaticType for ParamSpecBoolean
impl StaticType for ParamSpecBoxed
impl StaticType for ParamSpecChar
impl StaticType for ParamSpecDouble
impl StaticType for ParamSpecEnum
impl StaticType for ParamSpecFlags
impl StaticType for ParamSpecFloat
impl StaticType for ParamSpecGType
impl StaticType for ParamSpecInt64
impl StaticType for ParamSpecInt
impl StaticType for ParamSpecLong
impl StaticType for ParamSpecObject
impl StaticType for ParamSpecOverride
impl StaticType for ParamSpecParam
impl StaticType for ParamSpecPointer
impl StaticType for ParamSpecString
impl StaticType for ParamSpecUChar
impl StaticType for ParamSpecUInt64
impl StaticType for ParamSpecUInt
impl StaticType for ParamSpecULong
impl StaticType for ParamSpecUnichar
impl StaticType for ParamSpecValueArray
impl StaticType for ParamSpecVariant
impl StaticType for Regex
impl StaticType for SignalGroup
Available on crate feature
v2_74
only.impl StaticType for Source
impl StaticType for TimeZone
impl StaticType for TypeModule
impl StaticType for TypePlugin
impl StaticType for Uri
Available on crate feature
v2_66
only.