Zig 语言文档 v0.4
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

Keyword Reference

来源 Zig 浏览 1 扫码 打印 2026-10-23 23:10:04
  • Keyword Reference
    • Keyword Reference
    • Keyword: pub

Keyword Reference

Keyword Reference

TODO the rest of the keywords. Most of these can just be links to the relevant section.

Keyword: pub

The pub in front of a top level declaration makes the declaration available to reference from a different file than the one it is declared in.

TODO delete pub syntax for fields, or make it do something.

See also:

  • @import
上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • Introduction
  • Hello World
  • Comments
  • Values
  • Variables
  • Integers
  • Floats
  • Operators
  • Arrays
  • Vectors
  • Pointers
  • Slices
  • struct
  • enum
  • union
  • blocks
  • switch
  • while
  • for
  • if
  • defer
  • unreachable
  • noreturn
  • Functions
  • Errors
  • Optionals
  • Casting
  • Zero Bit Types
  • comptime
  • Assembly
  • Atomics
  • Coroutines
  • Builtin Functions
    • Builtin Functions
    • @addWithOverflow
    • @alignCast
    • @alignOf
    • @ArgType
    • @atomicLoad
    • @atomicRmw
    • @bitCast
    • @bitOffsetOf
    • @boolToInt
    • @breakpoint
    • @bswap
    • @bitreverse
    • @byteOffsetOf
    • @bytesToSlice
    • @cDefine
    • @cImport
    • @cInclude
    • @clz
    • @cmpxchgStrong
    • @cmpxchgWeak
    • @compileError
    • @compileLog
    • @ctz
    • @cUndef
    • @divExact
    • @divFloor
    • @divTrunc
    • @embedFile
    • @enumToInt
    • @errorName
    • @errorReturnTrace
    • @errorToInt
    • @errSetCast
    • @export
    • @fence
    • @field
    • @fieldParentPtr
    • @floatCast
    • @floatToInt
    • @frameAddress
    • @handle
    • @import
    • @inlineCall
    • @intCast
    • @intToEnum
    • @intToError
    • @intToFloat
    • @intToPtr
    • @IntType
    • @memberCount
    • @memberName
    • @memberType
    • @memcpy
    • @memset
    • @mod
    • @mulWithOverflow
    • @newStackCall
    • @noInlineCall
    • @OpaqueType
    • @panic
    • @popCount
    • @ptrCast
    • @ptrToInt
    • @rem
    • @returnAddress
    • @setAlignStack
    • @setCold
    • @setEvalBranchQuota
    • @setFloatMode
    • @setGlobalLinkage
    • @setRuntimeSafety
    • @shlExact
    • @shlWithOverflow
    • @shrExact
    • @sizeOf
    • @sliceToBytes
    • @sqrt
    • @subWithOverflow
    • @tagName
    • @TagType
    • @This
    • @truncate
    • @typeId
    • @typeInfo
    • @typeName
    • @typeOf
    • @Vector
  • Build Mode
  • Single Threaded Builds
  • Undefined Behavior
  • Memory
  • Compile Variables
  • Root Source File
  • Zig Test
  • Zig Build System
  • C
  • Targets
  • Style Guide
  • Source Encoding
  • Keyword Reference
  • Grammar
  • Zen
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度