pub struct SemanticTag<'a> {
pub mfg_code: Option<VendorId>,
pub namespace_id: u8,
pub tag: u8,
pub label: Option<&'a str>,
}Expand description
A SemanticTagStruct (System Model §9.8.1), as carried by TagList.
Fields§
§mfg_code: Option<VendorId>MfgCode [0] — the vendor that defined the namespace, or None for a standard one.
Nullable: “If the MfgCode field is not null, the namespace… SHALL be scoped to the
manufacturer.”
namespace_id: u8NamespaceID [1] — which namespace the tag is drawn from.
tag: u8Tag [2] — the tag within that namespace.
label: Option<&'a str>Label [3] — an optional human-readable label, max 64, nullable.
Trait Implementations§
Source§impl<'a> Clone for SemanticTag<'a>
impl<'a> Clone for SemanticTag<'a>
Source§fn clone(&self) -> SemanticTag<'a>
fn clone(&self) -> SemanticTag<'a>
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 moreimpl<'a> Copy for SemanticTag<'a>
Source§impl<'a> Debug for SemanticTag<'a>
impl<'a> Debug for SemanticTag<'a>
impl<'a> Eq for SemanticTag<'a>
Source§impl<'a> PartialEq for SemanticTag<'a>
impl<'a> PartialEq for SemanticTag<'a>
impl<'a> StructuralPartialEq for SemanticTag<'a>
Auto Trait Implementations§
impl<'a> Freeze for SemanticTag<'a>
impl<'a> RefUnwindSafe for SemanticTag<'a>
impl<'a> Send for SemanticTag<'a>
impl<'a> Sync for SemanticTag<'a>
impl<'a> Unpin for SemanticTag<'a>
impl<'a> UnsafeUnpin for SemanticTag<'a>
impl<'a> UnwindSafe for SemanticTag<'a>
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