[][src]Struct lv2_sys::LV2_State_Flags

#[repr(transparent)]pub struct LV2_State_Flags(pub i32);

Flags describing value characteristics.

These flags are used along with the value's type URI to determine how to (de-)serialise the value data, or whether it is even possible to do so.

Implementations

impl LV2_State_Flags[src]

pub const LV2_STATE_IS_POD: LV2_State_Flags[src]

Plain Old Data.

Values with this flag contain no pointers or references to other areas of memory. It is safe to copy POD values with a simple memcpy and store them for the duration of the process. A POD value is not necessarily safe to trasmit between processes or machines (for example, filenames are POD), see LV2_STATE_IS_PORTABLE for details.

Implementations MUST NOT attempt to copy or serialise a non-POD value if they do not understand its type (and thus know how to correctly do so).

impl LV2_State_Flags[src]

pub const LV2_STATE_IS_PORTABLE: LV2_State_Flags[src]

Portable (architecture independent) data.

Values with this flag are in a format that is usable on any architecture. A portable value saved on one machine can be restored on another machine regardless of architecture. The format of portable values MUST NOT depend on architecture-specific properties like endianness or alignment. Portable values MUST NOT contain filenames.

impl LV2_State_Flags[src]

pub const LV2_STATE_IS_NATIVE: LV2_State_Flags[src]

Native data.

This flag is used by the host to indicate that the saved data is only going to be used locally in the currently running process (for things like instance duplication or snapshots), so the plugin should use the most efficient representation possible and not worry about serialisation and portability.

Trait Implementations

impl BitAnd<LV2_State_Flags> for LV2_State_Flags[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<LV2_State_Flags> for LV2_State_Flags[src]

impl BitOr<LV2_State_Flags> for LV2_State_Flags[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<LV2_State_Flags> for LV2_State_Flags[src]

impl Clone for LV2_State_Flags[src]

impl Copy for LV2_State_Flags[src]

impl Debug for LV2_State_Flags[src]

impl Eq for LV2_State_Flags[src]

impl From<LV2_State_Flags> for u32[src]

impl From<u32> for LV2_State_Flags[src]

impl Hash for LV2_State_Flags[src]

impl PartialEq<LV2_State_Flags> for LV2_State_Flags[src]

impl StructuralEq for LV2_State_Flags[src]

impl StructuralPartialEq for LV2_State_Flags[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.