pub trait LoadableIconExt: 'static {
// Required methods
fn load<P: IsA<Cancellable>>(
&self,
size: i32,
cancellable: Option<&P>,
) -> Result<(InputStream, GString), Error>;
fn load_async<P: IsA<Cancellable>, Q: FnOnce(Result<(InputStream, GString), Error>) + Send + 'static>(
&self,
size: i32,
cancellable: Option<&P>,
callback: Q,
);
}
Required Methods§
fn load<P: IsA<Cancellable>>( &self, size: i32, cancellable: Option<&P>, ) -> Result<(InputStream, GString), Error>
fn load_async<P: IsA<Cancellable>, Q: FnOnce(Result<(InputStream, GString), Error>) + Send + 'static>( &self, size: i32, cancellable: Option<&P>, callback: Q, )
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.