Skip to main content

transform_profile

Function transform_profile 

Source
pub fn transform_profile(
    source: &[u8],
    profile: &DeclarativeProfile,
    options: TransformOptions,
) -> Result<TransformResult, ProfileError>
Expand description

Scan under a profile and produce the bytes a removal would write.

scan_profile followed by the same layout, edit validation, and source-map engine the built-in languages go through, so the guarantees of transform hold here too.

ยงErrors

Returns a ProfileError when the profile itself is unreadable.