pub struct WraperMarkerBuilder {
pub glyph: char,
pub style: Style,
}Expand description
Builder struct for WrapMarker
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 WraperMarkerBuilder
impl WraperMarkerBuilder
pub fn build(self) -> WrapMarker
Sourcepub fn style(self, style: Style) -> WraperMarkerBuilder
pub fn style(self, style: Style) -> WraperMarkerBuilder
Setter for `style``
Sourcepub fn glyph(self, glyph: char) -> WraperMarkerBuilder
pub fn glyph(self, glyph: char) -> WraperMarkerBuilder
Setter for glyph
Trait Implementations§
Source§impl Clone for WraperMarkerBuilder
impl Clone for WraperMarkerBuilder
Source§fn clone(&self) -> WraperMarkerBuilder
fn clone(&self) -> WraperMarkerBuilder
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 moreimpl Copy for WraperMarkerBuilder
Source§impl Debug for WraperMarkerBuilder
impl Debug for WraperMarkerBuilder
impl Eq for WraperMarkerBuilder
Source§impl PartialEq for WraperMarkerBuilder
impl PartialEq for WraperMarkerBuilder
impl StructuralPartialEq for WraperMarkerBuilder
Auto Trait Implementations§
impl Freeze for WraperMarkerBuilder
impl RefUnwindSafe for WraperMarkerBuilder
impl Send for WraperMarkerBuilder
impl Sync for WraperMarkerBuilder
impl Unpin for WraperMarkerBuilder
impl UnsafeUnpin for WraperMarkerBuilder
impl UnwindSafe for WraperMarkerBuilder
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
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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