Warning
This post was published 68 days ago. The information described in this article may have changed.
The is a re-opening of the question
Suppose my only source code is src/lib.rs
(see below). If I run cargo doc
I get a huge number of items below Auto Trait Implementations
and Blanket Implementations
. How to I suppress these automatically generate items ?
//! cargo_test documentation
/// MyInt documentation
pub struct MyInt {
pub value : u32 ,
}
/// MyInt + MyInt documentation
impl std::ops::Add<MyInt> for MyInt {
type Output = MyInt;
fn add(self, rhs : MyInt) -> MyInt {
MyInt {
value : self.value + rhs.value,
}
}
}
1 post - 1 participant
🏷️ rust_feed