pub unsafe fn connect_port_ptr<T>(&mut self, port_index: usize, data: *mut T) {
        let port_index = match u32::try_from(port_index) {
            Ok(port_index) => port_index,
            Err(_) => return,
        };
        lib::lilv_instance_connect_port(self.inner.as_ptr(), port_index, data.cast());
    }
/// Connect data pointer to a port on a plugin instance. Similar to
/// `connect_port` but takes a pointer instead.
///
/// # Safety
/// Connecting a port calls a plugin's code, which itself may be unsafe.
Connect data pointer to a port on a plugin instance. Similar to
`connect_port` but takes a pointer instead.
Connect data pointer to a port on a plugin instance . Similar to ` connect_port ` but takes a pointer instead .
pub unsafe fn connect_port_ptr<T>(&mut self, port_index: usize, data: *mut T) {
        let port_index = match u32::try_from(port_index) {
            Ok(port_index) => port_index,
            Err(_) => return,
        };
        lib::lilv_instance_connect_port(self.inner.as_ptr(), port_index, data.cast());
    }
pub unsafe fn connect_port_ptr < T > ( & mut self , port_index : usize , data : * mut T ) { let port_index = match u32 :: try_from ( port_index ) { Ok ( port_index ) => port_index , Err ( _ ) => return , } ; lib :: lilv_instance_connect_port ( self . inner . as_ptr ( ) , port_index , data . cast ( ) ) ; }
Connect data pointer to a port on a plugin instance.
Connect data pointer to a port on a plugin instance .
&mut self
port_index
usize
data
*mut T
&mut self
port_index
usize
data
*mut T
safety
Connecting a port calls a plugin's code, which itself may be unsafe.
Connecting a port calls a plugin ' s code which itself may be unsafe .