Zig 0.17.0-dev (Split by item)
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.
Zig › std/ › zig/ › Ast.zig › ptrTypeBitRange
ptrTypeBitRange
Ast.ptrTypeBitRange
pub fn ptrTypeBitRange (tree : Ast , node : Node .Index ) full .PtrType
File
Code
pub fn ptrTypeBitRange (tree : Ast , node : Node .Index ) full .PtrType {
assert (tree .nodeTag (node ) == .ptr_type_bit_range );
const extra_index , const child_type = tree .nodeData (node ).extra_and_node ;
const extra = tree .extraData (extra_index , Node .PtrTypeBitRange );
return tree .fullPtrTypeComponents (.{
.main_token = tree .nodeMainToken (node ),
.align_node = extra .align_node .toOptional (),
.addrspace_node = extra .addrspace_node ,
.sentinel = extra .sentinel ,
.bit_range_start = extra .bit_range_start .toOptional (),
.bit_range_end = extra .bit_range_end .toOptional (),
.child_type = child_type ,
});
}