fn can_write(&self) -> bool {
        if let PipeEnd::Write = self.direction {
            self.data.lock().end_cnt == 2
        } else {
            false
        }
    }
/// whether the pipe struct is writeable
whether the pipe struct is writeable
whether the pipe struct is writeable
fn can_write(&self) -> bool {
        if let PipeEnd::Write = self.direction {
            self.data.lock().end_cnt == 2
        } else {
            false
        }
    }
fn can_write ( & self ) -> bool { if let PipeEnd :: Write = self . direction { self . data . lock ( ) . end_cnt == 2 } else { false } }
whether the pipe struct is writeable
whether the pipe struct is writeable
&self
&self