Skip to documentation
SLOP

tiny.preserves.Ownership

Reference tiny.preserves Ownership

Defined in atom.

Whether the holder of some bytes owns them, and frees them with its own deinit, or borrows them from an owner that keeps them alive.

API (2)

Fields and members

Public fields and members.

No direct callersNo direct callsatomOwnership
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/preserves/src/atom.zig:47

zig
/// Whether the holder of some bytes owns them, and frees them with its own `deinit`, or borrows/// them from an owner that keeps them alive. Code that holds atom bytes apart from their value/// reads this to decide whether `deinit` frees them.pub const Ownership = enum { borrowed, owned };

Source: lib/preserves/src/root.zig:133

zig
pub const Ownership = atom.Ownership;

Also reachable as

value.Ownership.

Audit

Definitions1
Public names3
Members2
Version26.7.0
Revisiondaab053ee433