back
loading skill details...
Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT,…
Rust Coding Guidelines (50 Core Rules) Naming (Rust-Specific) Rule Guideline No get_ prefix fn name() not fn get_name() Iterator convention iter() / iter_mut() / into_iter() Conversion naming as_ (cheap &), to_ (expensive), into_ (ownership) Static var prefix G_CONFIG for static, no prefix for const Data Types Rule Guideline Use newtypes struct Email(String) for domain semantics Prefer slice patterns if let [first, .., last] = slice Pre-allocate Vec::with_capacity(), String::with_capacity() Avoid Vec abuse Use arrays for fixed sizes
don't have the plugin yet? install it then click "run inline in claude" again.