Sha256: ac53366c51ff13e4668a2c68ca2f11b96189babbc68415c404a547f88c901548
Contents?: true
Size: 496 Bytes
Versions: 25
Compression:
Stored size: 496 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 std::os::unix::fs::DirBuilderExt for DirOptionsExt { fn mode(&mut self, mode: u32) -> &mut Self { self.mode = mode; self } }
Version data entries
25 entries across 25 versions & 1 rubygems