pub enum DocTarget {
PhpDoc,
JavaDoc,
TsDoc,
JsDoc,
CSharpDoc,
}Expand description
Target language for sanitize_rust_idioms.
Each variant selects the idiomatic mapping for Rust constructs that do not translate directly to foreign-language doc syntax.
Variants§
PhpDoc
PHPDoc (/** ... */), e.g. phpstan-typed prose.
JavaDoc
Javadoc (/** ... */), e.g. OpenJDK-style annotations.
TsDoc
TSDoc (/** ... */), TypeScript variant of JSDoc.
JsDoc
JSDoc (/** ... */), JavaScript variant.
CSharpDoc
C# XML doc (/// <summary>...</summary>).
Strips Rust code fences and section headings (# Examples,
# Arguments, # Returns, etc.), drops Rust trait-bound prose,
and XML-escapes any remaining < / > / & so the result is
safe to embed inside a <summary> element.
Trait Implementations§
impl Copy for DocTarget
impl Eq for DocTarget
impl StructuralPartialEq for DocTarget
Auto Trait Implementations§
impl Freeze for DocTarget
impl RefUnwindSafe for DocTarget
impl Send for DocTarget
impl Sync for DocTarget
impl Unpin for DocTarget
impl UnsafeUnpin for DocTarget
impl UnwindSafe for DocTarget
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