Skip to main content

is_direct_link

Function is_direct_link 

pub fn is_direct_link(value: &str) -> bool
Expand description

Re-exports the media runtime helpers when the media feature is enabled.

§Examples

ⓘ
use pharos_native::media::*;
  • crate::runtime for runtime flows that consume media helpers. Checks whether text is a direct HTTP(S) link safe to expose as a link candidate.

§Parameters

§Returns

Returns true when the condition checked by crate::is_direct_link holds and false otherwise.

§Performance

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

§Examples

ⓘ
let _result = pharos_runtime_media::is_direct_link("value");
  • [crate] for adjacent helpers that share the same runtime surface.