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: type
gpa: Allocator
ast: Ast
zoir: Zoir
status: ?*Status
options: Options
Possible Errors
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);
}