#[repr(transparent)]pub struct LV2_State_Flags(pub u32);Expand description
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.
Tuple Fields§
§0: u32Implementations§
Source§impl LV2_State_Flags
impl LV2_State_Flags
Sourcepub const LV2_STATE_IS_POD: LV2_State_Flags
pub const LV2_STATE_IS_POD: LV2_State_Flags
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).
Source§impl LV2_State_Flags
impl LV2_State_Flags
Sourcepub const LV2_STATE_IS_PORTABLE: LV2_State_Flags
pub const LV2_STATE_IS_PORTABLE: LV2_State_Flags
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.
Source§impl LV2_State_Flags
impl LV2_State_Flags
Sourcepub const LV2_STATE_IS_NATIVE: LV2_State_Flags
pub const LV2_STATE_IS_NATIVE: LV2_State_Flags
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§
Source§impl BitAnd for LV2_State_Flags
impl BitAnd for LV2_State_Flags
Source§impl BitAndAssign for LV2_State_Flags
impl BitAndAssign for LV2_State_Flags
Source§fn bitand_assign(&mut self, rhs: LV2_State_Flags)
fn bitand_assign(&mut self, rhs: LV2_State_Flags)
&= operation. Read moreSource§impl BitOr for LV2_State_Flags
impl BitOr for LV2_State_Flags
Source§impl BitOrAssign for LV2_State_Flags
impl BitOrAssign for LV2_State_Flags
Source§fn bitor_assign(&mut self, rhs: LV2_State_Flags)
fn bitor_assign(&mut self, rhs: LV2_State_Flags)
|= operation. Read moreSource§impl Clone for LV2_State_Flags
impl Clone for LV2_State_Flags
Source§fn clone(&self) -> LV2_State_Flags
fn clone(&self) -> LV2_State_Flags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more