pub enum Held {
Value,
Shared,
Plain,
}Expand description
How the native C++ mapping holds one member.
Variants§
Value
The value itself.
A std::shared_ptr<T>: an @external member, or a member that
closes a cycle and is neither @optional nor annotated.
Plain
A plain T *, NULL when absent: an @optional member. DDS-XTypes
1.3 §7.5.1.2.4.2: “Optional members shall be represented using
plain pointers rather than automatic values or smart pointers.”
Trait Implementations§
impl Copy for Held
impl Eq for Held
impl StructuralPartialEq for Held
Auto Trait Implementations§
impl Freeze for Held
impl RefUnwindSafe for Held
impl Send for Held
impl Sync for Held
impl Unpin for Held
impl UnsafeUnpin for Held
impl UnwindSafe for Held
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