Skip to main content

IntoRef

Trait IntoRef 

Source
pub trait IntoRef<U: ObjectType> {
    // Required method
    fn into_ref(self) -> Ref<U>;
}
Expand description

A non-optional object reference accepted by methods, convertible from a handle (or a borrowed handle) of any derived class.

Required Methods§

Source

fn into_ref(self) -> Ref<U>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: ObjectType + Upcast<U>, U: ObjectType> IntoRef<U> for &Ref<T>

Source§

impl<T: ObjectType + Upcast<U>, U: ObjectType> IntoRef<U> for Ref<T>