recognize_str

Function recognize_str 

Source
pub fn recognize_str(source: &str) -> Result<(), Error>
Expand description

Test whether a string represent a valid WGSL module (TranslationUnit).

Warning: it does not take WESL extensions into account.