What 🦀🤣, ok I'm hooked:
"think of {} as little crab pincers that hold a value in place*
What 🦀🤣, ok I'm hooked:
"think of {} as little crab pincers that hold a value in place*
#rustacians ... HELP! 😅
Maybe I need to unlearn some old OOP habits when working with #rustlang but ... for the following code:
trait Bonus { ... }
trait A { ... }
trait B { ... }
impl<T: A> Bonus for T { ... }
impl<T: B> Bonus for T { ... }
I get the following Rust compiler error:
conflicting implementations of trait `filters::Bonus` [E0119]
Shouldn't I get this error only when I attempt to implement both traits A and B for some type T? As long as they're mutually exclusive, I am not sure I get why the compiler is complaining. How would you go about it?
@davidr Great questions! I created a tool called JC that converts the output of old utilities to JSON.
This was more a proof of concept that has turned into a widely-used production tool. Many new tools have a JSON output option and the trend seems to be that is the norm now.
JC can help with the older tools until the #Rustacians rebuild them with JSON support. :)
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and ...