#[non_exhaustive]pub struct LabelView<'s> {
pub text: &'s str,
pub color: CellColor,
pub slot: LabelSlot,
}Expand description
An edge label, resolved: text, color, and where it landed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: &'s strLabel text (never transliterated).
color: CellColorResolved label color.
slot: LabelSlotWhere the label ended up under the plan’s label policy.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for LabelView<'s>
impl<'s> RefUnwindSafe for LabelView<'s>
impl<'s> Send for LabelView<'s>
impl<'s> Sync for LabelView<'s>
impl<'s> Unpin for LabelView<'s>
impl<'s> UnsafeUnpin for LabelView<'s>
impl<'s> UnwindSafe for LabelView<'s>
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