Trait qt_core::ArgumentsCompatible
source · pub trait ArgumentsCompatible<T> { }
Expand description
Argument types compatible for signal connection.
Qt allows to connect senders to receivers if their argument types are the same. Additionally, Qt allows receivers to have fewer arguments than the sender. Other arguments are simply omitted in such a connection.
Note that Qt also allows to connect senders to receivers when their argument types are not the same but there is a conversion from sender’s argument types to receiver’s corresponding argument types. This ability is not exposed in Rust wrapper’s API.
Argument types are expressed as a tuple.
ArgumentsCompatible<T1>
is implemented for T2
tuple if
T1
tuple can be constructed by removing some elements from the end of T2
.
For instance, ArgumentsCompatible<T>
and ArgumentsCompatible<()>
are implemented
for every T
.
ArgumentsCompatible
is implemented for tuples with up to 16 items.