You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a little opaque - the functions that return Result return a struct to rust that is Ok or Err, which makes it non obvious how to use. On top of that, some of the functions are builders, and some act via mutation. First is to probably add some documentation to these functions, and then after that we should implement a module in the cogs directory that wraps up some of the more low level functions into something a bit more idiomatic.
For example, capturing std out into a string is a little non obvious:
See here for the module
It is a little opaque - the functions that return
Result
return a struct to rust that isOk
orErr
, which makes it non obvious how to use. On top of that, some of the functions are builders, and some act via mutation. First is to probably add some documentation to these functions, and then after that we should implement a module in thecogs
directory that wraps up some of the more low level functions into something a bit more idiomatic.For example, capturing std out into a string is a little non obvious:
The text was updated successfully, but these errors were encountered: