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 library itself.
constOpenFileOptions = struct {
access_mask: windows.ACCESS_MASK,
dir: ?windows.HANDLE = null,
sa: ?*constwindows.SECURITY_ATTRIBUTES = null,
share_access: windows.FILE.SHARE = .VALID_FLAGS,
creation: windows.FILE.CREATE_DISPOSITION,
filter: Filter = .non_directory_only,
/// If false, tries to open path as a reparse point without dereferencing it./// Defaults to true.follow_symlinks: bool = true,
pubconstFilter = enum {
/// Causes `OpenFile` to return `error.IsDir` if the opened handle would be a directory.non_directory_only,
/// Causes `OpenFile` to return `error.NotDir` if the opened handle is not a directory.dir_only,
/// `OpenFile` does not discriminate between opening files and directories.any,
};
}