Enum termwiz::lineedit::OutputElement
source · [−]pub enum OutputElement {
Attribute(AttributeChange),
AllAttributes(CellAttributes),
Text(String),
}
Expand description
The OutputElement
type allows returning graphic attribute changes
as well as textual output.
Variants
Attribute(AttributeChange)
Change a single attribute
AllAttributes(CellAttributes)
Change all possible attributes to the given set of values
Text(String)
Printable text. Control characters are rendered inert by transforming them to space. CR and LF characters are interpreted by moving the cursor position. CR moves the cursor to the start of the line and LF moves the cursor down to the next line. You typically want to use both together when sending in a line break.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OutputElement
impl Send for OutputElement
impl Sync for OutputElement
impl Unpin for OutputElement
impl UnwindSafe for OutputElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more