Skip to main content

rewrite_link_target

Function rewrite_link_target 

Source
pub fn rewrite_link_target(target: &str) -> Option<String>
Expand description

Rewrites one documentation link target while rejecting unsafe schemes.

§Parameters

§Returns

Returns Some when crate::docs::rewrite_link_target can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::docs::rewrite_link_target.

§Examples

ⓘ
let _result = pharos_runtime_docs::docs::rewrite_link_target("/");
  • crate::docs for adjacent helpers that share the same runtime surface.