pub struct HistoryLine {
pub text: String,
pub is_input: bool,
}Expand description
A line in the console’s history view.
Might have come from the user or is the result of running a command.
Fields§
§text: StringThe line’s text.
is_input: boolWhether the line is input from the user or output from running a command.
Implementations§
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 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