pub struct TwoLineElision {
pub prefix: StyledText,
pub first: StyledText,
pub last: StyledText,
pub first_omissions: Vec<StyledText>,
pub last_omissions: Vec<StyledText>,
pub labels: Vec<StyledText>,
pub unabridged: Option<StyledText>,
}Expand description
Width-adaptive two-row content that preserves leading and trailing excerpts.
Callers must bound the prefix, excerpts, candidate lists, and optional unabridged content. Layout work scales with the supplied values and does not impose its own source-size limit.
Fields§
§prefix: StyledTextStyled prefix shown before the first excerpt, such as a prompt marker.
first: StyledTextStyled beginning of the first source line.
last: StyledTextStyled end of the last source line.
first_omissions: Vec<StyledText>Styled first-row omission markers, ordered from preferred to most compact.
last_omissions: Vec<StyledText>Styled second-row omission markers, ordered from preferred to most compact.
labels: Vec<StyledText>Styled state labels, ordered from preferred to most compact.
unabridged: Option<StyledText>Bounded complete presentation retained when it naturally fits two rows.
Trait Implementations§
Source§impl Clone for TwoLineElision
impl Clone for TwoLineElision
Source§fn clone(&self) -> TwoLineElision
fn clone(&self) -> TwoLineElision
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 TwoLineElision
impl Debug for TwoLineElision
impl Eq for TwoLineElision
Source§impl PartialEq for TwoLineElision
impl PartialEq for TwoLineElision
impl StructuralPartialEq for TwoLineElision
Auto Trait Implementations§
impl Freeze for TwoLineElision
impl RefUnwindSafe for TwoLineElision
impl Send for TwoLineElision
impl Sync for TwoLineElision
impl Unpin for TwoLineElision
impl UnsafeUnpin for TwoLineElision
impl UnwindSafe for TwoLineElision
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