#[repr(C)]pub struct LV2_State_Free_Path {
pub handle: LV2_State_Free_Path_Handle,
pub free_path: Option<unsafe extern "C" fn(handle: LV2_State_Free_Path_Handle, path: *mut c_char)>,
}Expand description
Feature data for state:freePath (@ref LV2_STATE__freePath).
Fields§
§handle: LV2_State_Free_Path_HandleOpaque host data.
free_path: Option<unsafe extern "C" fn(handle: LV2_State_Free_Path_Handle, path: *mut c_char)>Free a path returned by a state feature.
@param handle MUST be the handle member of this struct.
@param path The path previously returned by a state feature.
This function can be used by plugins to free paths allocated by the host and returned by state features (LV2_State_Map_Path.abstract_path(), LV2_State_Map_Path.absolute_path(), and LV2_State_Make_Path.path()).
Trait Implementations§
Source§impl Clone for LV2_State_Free_Path
impl Clone for LV2_State_Free_Path
Source§fn clone(&self) -> LV2_State_Free_Path
fn clone(&self) -> LV2_State_Free_Path
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 LV2_State_Free_Path
impl Debug for LV2_State_Free_Path
impl Copy for LV2_State_Free_Path
Auto Trait Implementations§
impl Freeze for LV2_State_Free_Path
impl RefUnwindSafe for LV2_State_Free_Path
impl !Send for LV2_State_Free_Path
impl !Sync for LV2_State_Free_Path
impl Unpin for LV2_State_Free_Path
impl UnwindSafe for LV2_State_Free_Path
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