pub unsafe trait IsA<T>:
ObjectType
+ Into<T>
+ AsRef<T>
+ Borrow<T>where
T: ObjectType,{ }Expand description
Declares the “is a” relationship.
Self is said to implement T.
For instance, since originally GtkWidget is a subclass of GObject and
implements the GtkBuildable interface, gtk::Widget implements
IsA<glib::Object> and IsA<gtk::Buildable>.
The trait can only be implemented if the appropriate ToGlibPtr
implementations exist.
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§
impl IsA<Action> for PropertyAction
impl IsA<Action> for SimpleAction
impl IsA<ActionGroup> for Application
impl IsA<ActionGroup> for DBusActionGroup
impl IsA<ActionGroup> for RemoteActionGroup
impl IsA<ActionGroup> for SimpleActionGroup
impl IsA<ActionMap> for Application
impl IsA<ActionMap> for SimpleActionGroup
impl IsA<AsyncInitable> for DBusConnection
impl IsA<AsyncInitable> for DBusObjectManagerClient
impl IsA<AsyncInitable> for DBusProxy
impl IsA<BufferedInputStream> for DataInputStream
impl IsA<Converter> for CharsetConverter
impl IsA<Converter> for ZlibCompressor
impl IsA<Converter> for ZlibDecompressor
impl IsA<DatagramBased> for DtlsClientConnection
impl IsA<DatagramBased> for DtlsConnection
impl IsA<DatagramBased> for DtlsServerConnection
impl IsA<DatagramBased> for Socket
impl IsA<DBusInterface> for DBusInterfaceSkeleton
impl IsA<DBusInterface> for DBusProxy
impl IsA<DBusObject> for DBusObjectProxy
impl IsA<DBusObject> for DBusObjectSkeleton
impl IsA<DBusObjectManager> for DBusObjectManagerClient
impl IsA<DBusObjectManager> for DBusObjectManagerServer
impl IsA<DebugController> for DebugControllerDBus
impl IsA<DtlsConnection> for DtlsClientConnection
impl IsA<DtlsConnection> for DtlsServerConnection
impl IsA<FilterInputStream> for BufferedInputStream
impl IsA<FilterInputStream> for ConverterInputStream
impl IsA<FilterInputStream> for DataInputStream
impl IsA<FilterOutputStream> for BufferedOutputStream
impl IsA<FilterOutputStream> for ConverterOutputStream
impl IsA<FilterOutputStream> for DataOutputStream
impl IsA<Icon> for BytesIcon
impl IsA<Icon> for Emblem
impl IsA<Icon> for EmblemedIcon
impl IsA<Icon> for FileIcon
impl IsA<Icon> for LoadableIcon
impl IsA<Icon> for ThemedIcon
impl IsA<InetSocketAddress> for ProxyAddress
impl IsA<Initable> for CharsetConverter
impl IsA<Initable> for DBusConnection
impl IsA<Initable> for DBusObjectManagerClient
impl IsA<Initable> for DBusProxy
impl IsA<Initable> for DBusServer
impl IsA<Initable> for DebugController
impl IsA<Initable> for DebugControllerDBus
impl IsA<Initable> for InetAddressMask
impl IsA<Initable> for MemoryMonitor
impl IsA<Initable> for NetworkMonitor
impl IsA<Initable> for PowerProfileMonitor
impl IsA<Initable> for Socket
impl IsA<Initable> for Subprocess
impl IsA<InputStream> for BufferedInputStream
impl IsA<InputStream> for ConverterInputStream
impl IsA<InputStream> for DataInputStream
impl IsA<InputStream> for FileInputStream
impl IsA<InputStream> for FilterInputStream
impl IsA<InputStream> for MemoryInputStream
impl IsA<InputStream> for PollableInputStream
impl IsA<InputStream> for ReadInputStream
impl IsA<IOStream> for FileIOStream
impl IsA<IOStream> for SimpleIOStream
impl IsA<IOStream> for SocketConnection
impl IsA<IOStream> for TcpConnection
impl IsA<IOStream> for TcpWrapperConnection
impl IsA<IOStream> for TlsClientConnection
impl IsA<IOStream> for TlsConnection
impl IsA<IOStream> for TlsServerConnection
impl IsA<IOStream> for UnixConnection
impl IsA<ListModel> for ListStore
impl IsA<LoadableIcon> for BytesIcon
impl IsA<LoadableIcon> for FileIcon
impl IsA<MenuModel> for DBusMenuModel
impl IsA<MenuModel> for Menu
impl IsA<OutputStream> for BufferedOutputStream
impl IsA<OutputStream> for ConverterOutputStream
impl IsA<OutputStream> for DataOutputStream
impl IsA<OutputStream> for FileOutputStream
impl IsA<OutputStream> for FilterOutputStream
impl IsA<OutputStream> for MemoryOutputStream
impl IsA<OutputStream> for PollableOutputStream
impl IsA<OutputStream> for WriteOutputStream
impl IsA<Permission> for SimplePermission
impl IsA<PollableInputStream> for ConverterInputStream
impl IsA<PollableInputStream> for MemoryInputStream
impl IsA<PollableOutputStream> for ConverterOutputStream
impl IsA<PollableOutputStream> for MemoryOutputStream
impl IsA<ProxyResolver> for SimpleProxyResolver
impl IsA<RemoteActionGroup> for DBusActionGroup
impl IsA<Seekable> for BufferedInputStream
impl IsA<Seekable> for BufferedOutputStream
impl IsA<Seekable> for DataInputStream
impl IsA<Seekable> for DataOutputStream
impl IsA<Seekable> for FileInputStream
impl IsA<Seekable> for FileIOStream
impl IsA<Seekable> for FileOutputStream
impl IsA<Seekable> for MemoryInputStream
impl IsA<Seekable> for MemoryOutputStream
impl IsA<Seekable> for ReadInputStream
impl IsA<Seekable> for WriteOutputStream
impl IsA<SocketAddress> for InetSocketAddress
impl IsA<SocketAddress> for NativeSocketAddress
impl IsA<SocketAddress> for ProxyAddress
impl IsA<SocketAddress> for UnixSocketAddress
impl IsA<SocketAddressEnumerator> for ProxyAddressEnumerator
impl IsA<SocketConnectable> for InetSocketAddress
impl IsA<SocketConnectable> for NativeSocketAddress
impl IsA<SocketConnectable> for NetworkAddress
impl IsA<SocketConnectable> for NetworkService
impl IsA<SocketConnectable> for ProxyAddress
impl IsA<SocketConnectable> for SocketAddress
impl IsA<SocketConnectable> for UnixSocketAddress
impl IsA<SocketConnection> for TcpConnection
impl IsA<SocketConnection> for TcpWrapperConnection
impl IsA<SocketConnection> for UnixConnection
impl IsA<SocketControlMessage> for IPTosMessage
impl IsA<SocketControlMessage> for IPv6TclassMessage
impl IsA<SocketControlMessage> for UnixCredentialsMessage
impl IsA<SocketListener> for SocketService
impl IsA<SocketListener> for ThreadedSocketService
impl IsA<SocketService> for ThreadedSocketService
impl IsA<TcpConnection> for TcpWrapperConnection
impl IsA<TlsConnection> for TlsClientConnection
impl IsA<TlsConnection> for TlsServerConnection
impl IsA<TlsDatabase> for TlsFileDatabase
impl IsA<VolumeMonitor> for NativeVolumeMonitor
impl IsA<TypeModule> for IOModule
impl IsA<TypePlugin> for IOModule
impl<V> IsA<AsyncResult> for LocalTask<V>where
V: ValueType,
impl<V> IsA<AsyncResult> for Task<V>
Implementors§
impl IsA<AppInfo> for DesktopAppInfo
Available on non-macOS only.