pub struct RustDocBuilder { /* private fields */ }Implementations§
Source§impl RustDocBuilder
impl RustDocBuilder
pub fn new() -> Self
Sourcepub fn deps(self, yes: bool) -> Self
pub fn deps(self, yes: bool) -> Self
Include dependencies
Reasons to have this disabled:
- Faster API extraction
- Less likely to hit bugs in rustdoc, like
- rust-lang/rust#89097
- rust-lang/rust#83718
Reasons to have this enabled:
- Check for accidental inclusion of dependencies in your API
- Detect breaking changes from dependencies in your API
pub fn target_directory(self, path: impl Into<PathBuf>) -> Self
pub fn dump_raw(self, manifest_path: &Path) -> Result<String, Error>
pub fn into_api(self, manifest_path: &Path) -> Result<Api, Error>
Trait Implementations§
Source§impl Clone for RustDocBuilder
impl Clone for RustDocBuilder
Source§fn clone(&self) -> RustDocBuilder
fn clone(&self) -> RustDocBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustDocBuilder
impl Debug for RustDocBuilder
Source§impl Default for RustDocBuilder
impl Default for RustDocBuilder
Source§impl PartialEq for RustDocBuilder
impl PartialEq for RustDocBuilder
impl Eq for RustDocBuilder
impl StructuralPartialEq for RustDocBuilder
Auto Trait Implementations§
impl Freeze for RustDocBuilder
impl RefUnwindSafe for RustDocBuilder
impl Send for RustDocBuilder
impl Sync for RustDocBuilder
impl Unpin for RustDocBuilder
impl UnwindSafe for RustDocBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more