uselessgoddess
uselessgoddess
Your generator is panicking `thread 'main' panicked at 'generator resumed after completion'` ```rs let mut generator = gen_iter! {{ yield 1; }}; println!("{:?}", generator.next()); println!("{:?}", generator.next()); println!("{:?}", generator.next()); ```
`const_deref` feature should add almost all `const` functionality from `std::borrow::Cow` Sorry for the code duplication
```rust //use beef::lean::Cow; -- compile error use std::borrow::Cow; struct Data>, } fn main() { let mut data = Data { data: "hello".into(), follower: None, }; data.follower = Cow::from(&data.data).into(); } ```...
If i use the following code with `std::Cow` - will be ok ```rust let string = "hello".to_string(); let cow: Cow = Cow::from(&string); ``` but `beef::Cow` tells me: ``` error[E0277]: the...
In the case of `Beef::borrowed` can be implemented `const Deref`. Will it be done?
Or I will do it myself :(
For example, it might look something like this: ```c++ template struct Deref { struct Target {}; static auto do_invoke(const T&) -> Target&; template struct plugin { auto deref() const {...
I write simple `trait/interface` `Fizz`: ```c++ template struct Fizz { static auto do_invoke(const T &self) -> bool; template struct plugin { [[nodiscard]] auto is_fizz() const { return aa::invoke(*static_cast(this)); } };...
I ignore some errors with `try` block. I annotate type via `let _: Result = try { ... }`. But clippy: ``` warning: non-binding `let` on a type that implements...
I tried use `unreachable_pub` from rustc and `redundant_pub_crate` from clippy. I get a cyclical contradiction. ```rust #![deny(unreachable_pub)] #![deny(clippy::redundant_pub_crate)] pub(crate) mod internal1 { pub(crate) fn foo() {} } pub(crate) mod internal2...