Skip to main content

materialize

Function materialize 

Source
pub fn materialize(
    node: &RawNode,
    schema: Option<&Schema>,
) -> Result<RawNode, MaterializeError>
Expand description

A copy of node with leaf values upgraded to match schema, guaranteed to conform to it – or every reason it can’t, collected into one MaterializeError (never just the first problem found).

schema = None is a no-op passthrough: node is cloned back unchanged, with no validation performed at all.