Skip to main content

replace_placeholder

Function replace_placeholder 

Source
pub fn replace_placeholder<'a>(
    out: &mut String,
    template_text: &'a str,
    placeholder: &str,
    value: &str,
    is_html: bool,
) -> Option<&'a str>
Expand description

Performs replace placeholder.

§Parameters

§Returns

Returns Some when crate::docs::replace_placeholder 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::replace_placeholder.

§Examples

ⓘ
let _result = pharos_runtime_docs::docs::replace_placeholder(todo!(), todo!(), todo!(), "value", todo!());
  • crate::docs for adjacent helpers that share the same runtime surface.