Sha256: 5b94f4ce70f387e9be5028e30744708af39dda9e7b4dab16008a5e8fab85a96c
Contents?: true
Size: 488 Bytes
Versions: 13
Compression:
Stored size: 488 Bytes
Contents
#[derive(Debug, Clone)] pub(crate) struct DirOptionsExt { pub(super) mode: u32, } impl DirOptionsExt { pub(crate) const fn new() -> Self { Self { // The default value; see // <https://doc.rust-lang.org/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode> mode: 0o777, } } } impl crate::fs::DirBuilderExt for DirOptionsExt { fn mode(&mut self, mode: u32) -> &mut Self { self.mode = mode; self } }
Version data entries
13 entries across 13 versions & 1 rubygems