#[repr(C)]pub struct LV2_Options_Option {
pub context: LV2_Options_Context,
pub subject: u32,
pub key: LV2_URID,
pub size: u32,
pub type_: LV2_URID,
pub value: *const c_void,
}Expand description
An option.
This is a property with a subject, also known as a triple or statement.
This struct is useful anywhere a statement needs to be passed where no memory ownership issues are present (since the value is a const pointer).
Options can be passed to an instance via the feature LV2_OPTIONS__options with data pointed to an array of options terminated by a zeroed option, or accessed/manipulated using LV2_Options_Interface.
Fields§
§context: LV2_Options_Context< Context (type of subject).
subject: u32< Subject.
key: LV2_URID< Key (property).
size: u32< Size of value in bytes.
type_: LV2_URID< Type of value (datatype).
value: *const c_void< Pointer to value (object).
Trait Implementations§
Source§impl Clone for LV2_Options_Option
impl Clone for LV2_Options_Option
Source§fn clone(&self) -> LV2_Options_Option
fn clone(&self) -> LV2_Options_Option
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_Options_Option
impl Debug for LV2_Options_Option
impl Copy for LV2_Options_Option
Auto Trait Implementations§
impl Freeze for LV2_Options_Option
impl RefUnwindSafe for LV2_Options_Option
impl !Send for LV2_Options_Option
impl !Sync for LV2_Options_Option
impl Unpin for LV2_Options_Option
impl UnwindSafe for LV2_Options_Option
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