usecrate::fs::is_read_write_impl;usestd::{fs, io};/// Return a pair of booleans indicating whether the given file is opened
/// for reading and writing, respectively.
#[inline]pubfnis_read_write(file:&fs::File)->io::Result<(bool, bool)>{is_read_write_impl(file)}