pub struct WrapMarker {
pub glyph: char,
pub style: Style,
}Expand description
A purely-visual end-of-row marker drawn in a reserved rightmost column on
every continued wrapped row (a row that a raw line wrapped past — i.e.
not the last row of that line), so a soft wrap is visually distinct from a
real line break. Opt-in via [SelectablePanel::set_wrap_marker] /
PanelWrap’s builders; only meaningful in WrapMode::Wrap.
The marker occupies its own column: when enabled, lines wrap to one column narrower than the panel so the last column is free for the glyph. Because all selection and copy geometry keys off that reduced wrap width, the marker column never maps to a character — it is automatically excluded from highlighting and from copied text.
Fields§
§glyph: charThe glyph drawn in the reserved column (e.g. a chevron › or a
return arrow ↵). Must be a single terminal cell wide.
style: StyleThe style the glyph is drawn with — typically a dim / greyed-out style so it reads as an annotation rather than content.
Implementations§
Source§impl WrapMarker
impl WrapMarker
pub fn builder() -> WraperMarkerBuilder
Trait Implementations§
Source§impl Clone for WrapMarker
impl Clone for WrapMarker
Source§fn clone(&self) -> WrapMarker
fn clone(&self) -> WrapMarker
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WrapMarker
Source§impl Debug for WrapMarker
impl Debug for WrapMarker
Source§impl Default for WrapMarker
impl Default for WrapMarker
impl Eq for WrapMarker
Source§impl PartialEq for WrapMarker
impl PartialEq for WrapMarker
impl StructuralPartialEq for WrapMarker
Auto Trait Implementations§
impl Freeze for WrapMarker
impl RefUnwindSafe for WrapMarker
impl Send for WrapMarker
impl Sync for WrapMarker
impl Unpin for WrapMarker
impl UnsafeUnpin for WrapMarker
impl UnwindSafe for WrapMarker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more