pub struct LbMetaMessage {
pub labels: Vec<LabelMetaElement>,
}
Expand description
LBMETA message containing multiple label metadata elements
§OpenIGTLink Specification
- Message type: “LBMETA”
- Each element: NAME (
char[64]
) + ID (char[20]
) + LABEL (uint8) + Reserved (uint8) + RGBA (uint8[4]
) + SIZE (uint16[3]
) + OWNER (char[20]
) - Element size: 64 + 20 + 1 + 1 + 4 + 6 + 20 = 116 bytes
Fields§
§labels: Vec<LabelMetaElement>
List of label metadata elements
Implementations§
Source§impl LbMetaMessage
impl LbMetaMessage
Sourcepub fn new(labels: Vec<LabelMetaElement>) -> Self
pub fn new(labels: Vec<LabelMetaElement>) -> Self
Create a new LBMETA message
Sourcepub fn add_label(&mut self, label: LabelMetaElement)
pub fn add_label(&mut self, label: LabelMetaElement)
Add a label metadata element
Trait Implementations§
Source§impl Clone for LbMetaMessage
impl Clone for LbMetaMessage
Source§fn clone(&self) -> LbMetaMessage
fn clone(&self) -> LbMetaMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 LbMetaMessage
impl Debug for LbMetaMessage
Source§impl Message for LbMetaMessage
impl Message for LbMetaMessage
Source§impl PartialEq for LbMetaMessage
impl PartialEq for LbMetaMessage
impl StructuralPartialEq for LbMetaMessage
Auto Trait Implementations§
impl Freeze for LbMetaMessage
impl RefUnwindSafe for LbMetaMessage
impl Send for LbMetaMessage
impl Sync for LbMetaMessage
impl Unpin for LbMetaMessage
impl UnwindSafe for LbMetaMessage
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