These are chat archives for rust-lang/rust
T: Add<Output = T> + Copy
panic!()just abort your process — so no costs as in C++ to keep info on how to gracefully clean up. But then they also have
std::panic::catch_unwindwhich catches a panic — probably worth digging into that code to find out how they accomplish that?
debug_queryrequires that my
Default, however I'm having difficulty representing this in my method signature. The syntax I have gives an "ambiguous associated type" error. If I change it to something like
<Self::Backend as Connection::Backend>::QueryBuilder: Default, I get the error "cannot find associated type
Connection::Backend" even though the type
Backendhas an associated type for
QueryBuilderassociated type defined in?
Backendtrait which includes the
QueryBuilderassociated type: http://docs.diesel.rs/diesel/backend/trait.Backend.html
<Self::Backend as Backend>::QueryBuilder: Default
Connection::Backend. I guess that makes sense, I want to cast it to the trait rather than to the associated type.