pub enum TextWrap {
Wrap,
Hard,
TruncateEnd,
TruncateMiddle,
TruncateStart,
}Expand description
textWrap (styles.ts:10-16) — controls text wrapping within an ink-text
node. Lives on Style (not a node attribute) because dom.ts:242 reads
it as node.style?.textWrap; wrap-text.ts:3 types it Styles['textWrap'].
Default (when None) is Wrap, matching ink’s node.style?.textWrap ?? 'wrap'
(dom.ts:242).
Variants§
Wrap
'wrap' — soft word-wrap with hard=true, trim=false (wrap-text.ts:21-25).
Hard
'hard' — character-level hard wrap, word_wrap=false (wrap-text.ts:27-32).
TruncateEnd
'truncate' or 'truncate-end' — truncate at end (wrap-text.ts:33-47).
TruncateMiddle
'truncate-middle' — truncate in the middle.
TruncateStart
'truncate-start' — truncate at the start.
Trait Implementations§
impl Copy for TextWrap
impl Eq for TextWrap
impl StructuralPartialEq for TextWrap
Auto Trait Implementations§
impl Freeze for TextWrap
impl RefUnwindSafe for TextWrap
impl Send for TextWrap
impl Sync for TextWrap
impl Unpin for TextWrap
impl UnsafeUnpin for TextWrap
impl UnwindSafe for TextWrap
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