cap_primitives/fs/
is_file_read_write.rs

1use crate::fs::is_file_read_write_impl;
2use std::{fs, io};
3
4/// Return a pair of booleans indicating whether the given file is opened
5/// for reading and writing, respectively.
6#[inline]
7pub fn is_file_read_write(file: &fs::File) -> io::Result<(bool, bool)> {
8    is_file_read_write_impl(file)
9}