pub enum OpenSplicePragma {
DataType {
type_name: String,
file: String,
line: usize,
},
DataKey {
type_name: String,
field: String,
file: String,
line: usize,
},
Cats {
type_name: String,
keys: Vec<String>,
file: String,
line: usize,
},
GenEquality {
file: String,
line: usize,
},
}Expand description
OpenSplice-Legacy-spezifische Pragmas (#pragma DCPS_DATA_TYPE,
#pragma DCPS_DATA_KEY, #pragma cats, #pragma genequality).
In OpenSplice-Versionen 5.x/6.x waren diese Pragmas die primaere
Methode, IDL-Types als DDS-Topics zu markieren — vor der OMG-IDL-4.2-
Annotation @key. Migration-Use-Cases muessen sie auf moderne
@key/@topic-Annotations mappen.
Variants§
DataType
#pragma DCPS_DATA_TYPE "<TypeName>" — markiert Type als
DDS-Topic-Type.
DataKey
#pragma DCPS_DATA_KEY "<TypeName>.<field>" — markiert
Member als Key.
Cats
#pragma cats <TypeName> <field> — catenated keys
(alternative key-Markierung).
GenEquality
#pragma genequality — codegen-Flag fuer Gleichheits-Operator
in C++/Java-Bindings.
Trait Implementations§
Source§impl Clone for OpenSplicePragma
impl Clone for OpenSplicePragma
Source§fn clone(&self) -> OpenSplicePragma
fn clone(&self) -> OpenSplicePragma
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenSplicePragma
impl Debug for OpenSplicePragma
Source§impl PartialEq for OpenSplicePragma
impl PartialEq for OpenSplicePragma
Source§fn eq(&self, other: &OpenSplicePragma) -> bool
fn eq(&self, other: &OpenSplicePragma) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OpenSplicePragma
impl StructuralPartialEq for OpenSplicePragma
Auto Trait Implementations§
impl Freeze for OpenSplicePragma
impl RefUnwindSafe for OpenSplicePragma
impl Send for OpenSplicePragma
impl Sync for OpenSplicePragma
impl Unpin for OpenSplicePragma
impl UnsafeUnpin for OpenSplicePragma
impl UnwindSafe for OpenSplicePragma
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