#[non_exhaustive]pub struct Rustdoc { /* private fields */ }Implementations§
Source§impl Rustdoc
impl Rustdoc
Sourcepub fn from_root(project_root: impl Into<PathBuf>) -> Self
pub fn from_root(project_root: impl Into<PathBuf>) -> Self
Generate the rustdoc file from the project root directory,
i.e. the directory containing the crate source.
It can be a workspace or a single package.
Same as Rustdoc::from_git_revision(), but with the current git revision.
Sourcepub fn from_git_revision(
project_root: impl Into<PathBuf>,
revision: impl Into<String>,
) -> Self
pub fn from_git_revision( project_root: impl Into<PathBuf>, revision: impl Into<String>, ) -> Self
Generate the rustdoc file from the project at a given git revision.
Sourcepub fn from_registry_latest_crate_version() -> Self
pub fn from_registry_latest_crate_version() -> Self
Generate the rustdoc file from the largest-numbered non-yanked non-prerelease version published to the cargo registry. If no such version, uses the largest-numbered version including yanked and prerelease versions.
Sourcepub fn from_registry(crate_version: impl Into<String>) -> Self
pub fn from_registry(crate_version: impl Into<String>) -> Self
Generate the rustdoc file from a specific crate version.
Trait Implementations§
impl Eq for Rustdoc
impl StructuralPartialEq for Rustdoc
Auto Trait Implementations§
impl Freeze for Rustdoc
impl RefUnwindSafe for Rustdoc
impl Send for Rustdoc
impl Sync for Rustdoc
impl Unpin for Rustdoc
impl UnsafeUnpin for Rustdoc
impl UnwindSafe for Rustdoc
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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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