pub struct Label<'a> {
pub label: &'a str,
pub value: &'a str,
}Expand description
One LabelStruct (§9.7.4.1): “a string tuple with strings that are user defined”.
The specification declines to give either half a meaning — “The Label or Value semantic is
not defined here” — and offers "room":"bedroom 2" and "orientation":"North" as
examples. So this is deliberately two strings and no interpretation.
Fields§
§label: &'a strLabel [0] — the key. “room”, “zone”, “direction”.
value: &'a strValue [1] — “a discriminator for a Label that may have multiple instances”.
Implementations§
Trait Implementations§
impl<'a> Copy for Label<'a>
impl<'a> Eq for Label<'a>
impl<'a> StructuralPartialEq for Label<'a>
Auto Trait Implementations§
impl<'a> Forget for Label<'a>
impl<'a> Freeze for Label<'a>
impl<'a> Move for Label<'a>
impl<'a> RefUnwindSafe for Label<'a>
impl<'a> Send for Label<'a>
impl<'a> Sync for Label<'a>
impl<'a> Unpin for Label<'a>
impl<'a> UnsafeUnpin for Label<'a>
impl<'a> UnwindSafe for Label<'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