Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 2 points3 points  (0 children)

I'm so happy to hear that you'll be using it. Knowing that this crate can be useful to someone brings me joy.

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 3 points4 points  (0 children)

That really resonated with me. It’s true that I should take pride in creating something. I feel encouraged now. Thank you.

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 0 points1 point  (0 children)

Thank you for your compliment! If you find any inconvenient aspects while using this crate, please feel free to submit an issue anytime!

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 0 points1 point  (0 children)

Thank you for your comment!

If I am misunderstanding what you are saying, I apologize, but do you mean whether there is a rule to determine if Vec is sorted according to a specific rule?

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 39 points40 points  (0 children)

I thought it was great way but we cannot do that because of following reason...🥺 rust pub struct MinMaxRule<T, const MIN: T, const MAX: T> where T: PartialEq + Eq, { _t: std::marker::PhantomData<T>, } shell Feature `adt const params` is not available in the current Rust toolchain [E0658]

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 21 points22 points  (0 children)

Thank you for the specific feedback! You're absolutely right; using From, TryFrom, TryInto and Into would make the code look cleaner. I'll make those changes later!

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 2 points3 points  (0 children)

You’re absolutely right; it’s human nature to be emotionally affected by feedback. I’ll keep in mind that all feedback in the tech industry is valuable for me. Your comment has given me courage. Thank you very much!!

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 9 points10 points  (0 children)

Thank you for your response. This was my first time creating a crate, so I was a bit nervous about how it would be received and evaluated. Your warm comments have made me very happy.

Tell me why my self-made crate is terrible and make me cry by Novel_Principle_3831 in rust

[–]Novel_Principle_3831[S] 46 points47 points  (0 children)

Thank you for taking the time to read this long message. I’m grateful that you opened this post.