[][src]Struct lv2_sys::LV2_Options_Option

#[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,
}

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

impl Clone for LV2_Options_Option[src]

impl Copy for LV2_Options_Option[src]

impl Debug for LV2_Options_Option[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.