Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

CreateFileAtomicOptions

Public Struct
std.Io.Dir.CreateFileAtomicOptions
pub const CreateFileAtomicOptions = struct

Fields

permissions: File.Permissions = .default_file
make_path: bool = false
replace: bool = false

Tells whether the unnamed file will be ultimately created with File.Atomic.link or File.Atomic.replace.

If this value is incorrect it will cause an assertion failure in File.Atomic.replace.

File

Io/Dir.zig:1874
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
pub const CreateFileAtomicOptions = struct {
    permissions: File.Permissions = .default_file,
    make_path: bool = false,
    /// Tells whether the unnamed file will be ultimately created with
    /// `File.Atomic.link` or `File.Atomic.replace`.
    ///
    /// If this value is incorrect it will cause an assertion failure in
    /// `File.Atomic.replace`.
    replace: bool = false,
}