Sha256: 7b98658e87df61777025417c33da5f8c9fb4174e357e0aaa556ec5e701a857f2

Contents?: true

Size: 296 Bytes

Versions: 36

Compression:

Stored size: 296 Bytes

Contents

use crate::fs::is_file_read_write_impl;
use std::{fs, io};

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
wasmtime-14.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/fs/is_file_read_write.rs
wasmtime-13.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/fs/is_file_read_write.rs
wasmtime-12.0.1 ./ext/cargo-vendor/cap-primitives-2.0.0/src/fs/is_file_read_write.rs
wasmtime-12.0.0 ./ext/cargo-vendor/cap-primitives-2.0.0/src/fs/is_file_read_write.rs
wasmtime-11.0.0 ./ext/cargo-vendor/cap-primitives-1.0.15/src/fs/is_file_read_write.rs
wasmtime-10.0.1 ./ext/cargo-vendor/cap-primitives-1.0.15/src/fs/is_file_read_write.rs
wasmtime-10.0.0 ./ext/cargo-vendor/cap-primitives-1.0.15/src/fs/is_file_read_write.rs
wasmtime-9.0.4 ./ext/cargo-vendor/cap-primitives-1.0.15/src/fs/is_file_read_write.rs
wasmtime-9.0.1 ./ext/cargo-vendor/cap-primitives-1.0.15/src/fs/is_file_read_write.rs
wasmtime-8.0.0 ./ext/cargo-vendor/cap-primitives-1.0.14/src/fs/is_file_read_write.rs
wasmtime-7.0.0 ./ext/cargo-vendor/cap-primitives-1.0.9/src/fs/is_file_read_write.rs
wasmtime-6.0.1 ./ext/cargo-vendor/cap-primitives-1.0.5/src/fs/is_file_read_write.rs
wasmtime-6.0.0 ./ext/cargo-vendor/cap-primitives-1.0.5/src/fs/is_file_read_write.rs
wasmtime-5.0.0 ./ext/cargo-vendor/cap-primitives-1.0.4/src/fs/is_file_read_write.rs
wasmtime-0.4.1 ./ext/cargo-vendor/cap-primitives-1.0.3/src/fs/is_file_read_write.rs
wasmtime-0.4.0 ./ext/cargo-vendor/cap-primitives-1.0.2/src/fs/is_file_read_write.rs