pub struct AnnotationSegment {
pub text: Arc<str>,
pub slot: Arc<str>,
}Expand description
MARG §8: one run of marginalia text sharing a theme slot,
the unit of an Annotation::Styled cell. slot is a theme
element name the renderer resolves at paint time (unknown slot
→ the custom/plugin annotation color); it is NEVER a baked
color, so a :colorscheme swap recolors it live on both peers.
Fields§
§text: Arc<str>§slot: Arc<str>Trait Implementations§
Source§impl Clone for AnnotationSegment
impl Clone for AnnotationSegment
Source§fn clone(&self) -> AnnotationSegment
fn clone(&self) -> AnnotationSegment
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 moreSource§impl Debug for AnnotationSegment
impl Debug for AnnotationSegment
Source§impl PartialEq for AnnotationSegment
impl PartialEq for AnnotationSegment
impl StructuralPartialEq for AnnotationSegment
Auto Trait Implementations§
impl Freeze for AnnotationSegment
impl RefUnwindSafe for AnnotationSegment
impl Send for AnnotationSegment
impl Sync for AnnotationSegment
impl Unpin for AnnotationSegment
impl UnsafeUnpin for AnnotationSegment
impl UnwindSafe for AnnotationSegment
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