pub struct RustDocExtensions {
pub is_module_doc: bool,
pub is_unsafe: bool,
pub returns_result: bool,
pub is_async: bool,
pub panics: Vec<String>,
pub errors: Vec<String>,
pub safety: Vec<String>,
pub type_params: Vec<(String, Option<String>)>,
pub doc_links: Vec<String>,
pub must_use: Option<String>,
pub deprecated_since: Option<String>,
pub feature_gate: Option<String>,
}Expand description
@acp:summary “Rust-specific extensions for doc comments”
Fields§
§is_module_doc: boolWhether this is module-level documentation (//!)
is_unsafe: boolWhether the item is marked unsafe
returns_result: boolWhether the item returns a Result type
is_async: boolWhether the item is async
panics: Vec<String>Panic conditions
errors: Vec<String>Error conditions (for Result types)
safety: Vec<String>Safety requirements (for unsafe code)
type_params: Vec<(String, Option<String>)>Type parameters with descriptions
doc_links: Vec<String>Intra-doc links found
must_use: Option<String>Whether marked with #[must_use]
deprecated_since: Option<String>Deprecation info (since, note)
feature_gate: Option<String>Feature gate if any
Trait Implementations§
Source§impl Clone for RustDocExtensions
impl Clone for RustDocExtensions
Source§fn clone(&self) -> RustDocExtensions
fn clone(&self) -> RustDocExtensions
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 RustDocExtensions
impl Debug for RustDocExtensions
Source§impl Default for RustDocExtensions
impl Default for RustDocExtensions
Source§fn default() -> RustDocExtensions
fn default() -> RustDocExtensions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RustDocExtensions
impl RefUnwindSafe for RustDocExtensions
impl Send for RustDocExtensions
impl Sync for RustDocExtensions
impl Unpin for RustDocExtensions
impl UnwindSafe for RustDocExtensions
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<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