TextWrap
TextWrap
是一个枚举类型,用于定义文本的换行方式。
TextWrap
is a enum, used for define the wrap way of the text
Option Value
Ellipsis
: if overflow the defined width, the end of the text display ellipsisWord
: if it overflow the defined width, it will automatically wrapLine
: no wrap
Example
#![allow(unused)] fn main() { wrap: Ellipsis, wrap: Word, wrap: Line, }