pub enum IocraftCommand {
AppendLine {
segments: Vec<IocraftSegment>,
},
Inline {
segment: IocraftSegment,
},
ReplaceLast {
count: usize,
lines: Vec<Vec<IocraftSegment>>,
},
SetPrompt {
prefix: String,
style: IocraftTextStyle,
},
SetPlaceholder {
hint: Option<String>,
},
SetTheme {
theme: IocraftTheme,
},
Shutdown,
}
Variants§
AppendLine
Fields
§
segments: Vec<IocraftSegment>
Inline
Fields
§
segment: IocraftSegment
ReplaceLast
SetPrompt
SetPlaceholder
SetTheme
Fields
§
theme: IocraftTheme
Shutdown
Auto Trait Implementations§
impl Freeze for IocraftCommand
impl RefUnwindSafe for IocraftCommand
impl Send for IocraftCommand
impl Sync for IocraftCommand
impl Unpin for IocraftCommand
impl UnwindSafe for IocraftCommand
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