pub unsafe trait BorrowedProxy: UntypedBorrowedProxyWrapper {
type Owned: OwnedProxy<Borrowed = Self>;
}Expand description
A borrowed proxy.
This type is usually implemented by bindings that are automatically generated with the
wl-client-builder crate.
§Safety
- It must be safe to transmute this type from a
UntypedBorrowedProxythat has an interface that is compatible withOwned::WL_INTERFACE. - The interface of the contained proxy must be compatible with
Owned::WL_INTERFACE.
Required Associated Types§
Sourcetype Owned: OwnedProxy<Borrowed = Self>
type Owned: OwnedProxy<Borrowed = Self>
The owned version of this proxy.
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.