Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

35 lines (20 loc) · 1.1 KB

A rusty Luau module meant to be used with strictly-typed luau.

Toolbox link

Types

Result<T,E> - A union of Ok and Err types.

Ok<T> - A success result.

Err<T> - An error result.

Functions

rustd.match<T>(value_to_match: T, r: any?): ({{any}}) -> any

rustd.find_child(parent: Instance, pattern: string): Result<Instance,string>

rustd.find_child_of_class(parent: Instance, class_name: string): Result<Instance,string>

rustd.find_descendant(parent: Instance, pattern: string): Result<Instance,string>

rustd.find_descendant_of_class(parent: Instance, class_name: string): Result<Instance,string>

rustd.rcall<T>(func: (...any?) -> T,...): Result<T,string>

rustd.push_error(msg: string): ()

Documentation

Result

rustd Functions

Conclusion

Please don't be afraid to leave suggestions for other implementations you would want me to try to add in this module! I'll try my best to add them! This module will not work with the new type solver until it is fully released, unfortunately.