Function fromZoir [src]

Like fromSlice, but operates on Zoir instead of ZON source.

Prototype

pub fn fromZoir( T: type, gpa: Allocator, ast: Ast, zoir: Zoir, status: ?*Status, options: Options, ) error{ OutOfMemory, ParseZon }!T

Parameters

T: typegpa: Allocatorast: Astzoir: Zoirstatus: ?*Statusoptions: Options

Possible Errors

OutOfMemory
ParseZon

Source

pub fn fromZoir( T: type, gpa: Allocator, ast: Ast, zoir: Zoir, status: ?*Status, options: Options, ) error{ OutOfMemory, ParseZon }!T { return fromZoirNode(T, gpa, ast, zoir, .root, status, options); }