Compare commits
No commits in common. "8c353259505946df2e79f4c649ce4be5ddb20994" and "cd41376c2205b619ea07c9441613536da485d21e" have entirely different histories.
8c35325950
...
cd41376c22
1 changed files with 0 additions and 18 deletions
18
src/lib.rs
18
src/lib.rs
|
@ -84,24 +84,6 @@ pub struct Line {
|
||||||
pub content: String,
|
pub content: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Line {
|
|
||||||
pub fn from_stdout<S: AsRef<str>>(content: S) -> Self {
|
|
||||||
return Line {
|
|
||||||
content: content.as_ref().to_string(),
|
|
||||||
printed_to: LineType::Stdout,
|
|
||||||
time: Instant::now(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn from_stderr<S: AsRef<str>>(content: S) -> Self {
|
|
||||||
return Line {
|
|
||||||
content: content.as_ref().to_string(),
|
|
||||||
printed_to: LineType::Stderr,
|
|
||||||
time: Instant::now(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl PartialOrd for Line {
|
impl PartialOrd for Line {
|
||||||
fn ge(&self, other: &Line) -> bool {
|
fn ge(&self, other: &Line) -> bool {
|
||||||
if self.time >= other.time {
|
if self.time >= other.time {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue