1 2 3 4 5 6 7
pub fn is_stream(stream: Option<bool>) -> bool { if stream.is_some() && stream.unwrap() { return true; } false }