#[repr(C)]pub struct LV2UI_Port_Map {
pub handle: LV2UI_Feature_Handle,
pub port_index: Option<unsafe extern "C" fn(handle: LV2UI_Feature_Handle, symbol: *const c_char) -> u32>,
}Expand description
Feature to map port symbols to UIs.
This can be used by the UI to get the index for a port with the given symbol. This makes it possible to implement and distribute a UI separately from the plugin (since symbol, unlike index, is a stable port identifier).
Fields§
§handle: LV2UI_Feature_HandlePointer to opaque data which must be passed to port_index().
port_index: Option<unsafe extern "C" fn(handle: LV2UI_Feature_Handle, symbol: *const c_char) -> u32>Get the index for the port with the given symbol.
@return The index of the port, or LV2UI_INVALID_PORT_INDEX if no such port is found.
Trait Implementations§
Source§impl Clone for LV2UI_Port_Map
impl Clone for LV2UI_Port_Map
Source§fn clone(&self) -> LV2UI_Port_Map
fn clone(&self) -> LV2UI_Port_Map
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LV2UI_Port_Map
impl Debug for LV2UI_Port_Map
impl Copy for LV2UI_Port_Map
Auto Trait Implementations§
impl Freeze for LV2UI_Port_Map
impl RefUnwindSafe for LV2UI_Port_Map
impl !Send for LV2UI_Port_Map
impl !Sync for LV2UI_Port_Map
impl Unpin for LV2UI_Port_Map
impl UnwindSafe for LV2UI_Port_Map
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more