pub enum LabelAttach {
Middle,
Start,
End,
}Expand description
Where labels attach to their spans
Controls where the label’s arrow/message attaches to the highlighted span. This affects the visual positioning of the label annotation.
§Example
Middle (default):
foo(bar, baz)
---^---
|
label here
Start:
foo(bar, baz)
^-------
|
label here
End:
foo(bar, baz)
-------^
|
label hereVariants§
Middle
Attach in the middle of the span (default)
Start
Attach at the start of the span
End
Attach at the end of the span
Trait Implementations§
Source§impl Clone for LabelAttach
impl Clone for LabelAttach
Source§fn clone(&self) -> LabelAttach
fn clone(&self) -> LabelAttach
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 LabelAttach
impl Debug for LabelAttach
Source§impl Default for LabelAttach
impl Default for LabelAttach
Source§fn default() -> LabelAttach
fn default() -> LabelAttach
Returns the “default value” for a type. Read more
Source§impl PartialEq for LabelAttach
impl PartialEq for LabelAttach
impl Copy for LabelAttach
impl Eq for LabelAttach
impl StructuralPartialEq for LabelAttach
Auto Trait Implementations§
impl Freeze for LabelAttach
impl RefUnwindSafe for LabelAttach
impl Send for LabelAttach
impl Sync for LabelAttach
impl Unpin for LabelAttach
impl UnwindSafe for LabelAttach
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