pub struct HistoryLine {
pub kind: LineKind,
pub text: String,
}Fields§
§kind: LineKind§text: StringImplementations§
Source§impl HistoryLine
impl HistoryLine
pub fn input(text: impl Into<String>) -> HistoryLine
pub fn output(text: impl Into<String>) -> HistoryLine
pub fn error(text: impl Into<String>) -> HistoryLine
pub fn system(text: impl Into<String>) -> HistoryLine
Trait Implementations§
Source§impl Clone for HistoryLine
impl Clone for HistoryLine
Source§fn clone(&self) -> HistoryLine
fn clone(&self) -> HistoryLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HistoryLine
impl RefUnwindSafe for HistoryLine
impl Send for HistoryLine
impl Sync for HistoryLine
impl Unpin for HistoryLine
impl UnsafeUnpin for HistoryLine
impl UnwindSafe for HistoryLine
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