pub fn read<'a, A>(source: A) -> Result<Reader<'a>, ReadError>where
A: BlendSource<'a>,Expand description
Creates a Reader from a BlendSource.
§Errors
- This function may fail with a
ParseError.
§Examples
use blend_rs::blend::{read, Reader};
let blend_data = std::fs::read("examples/example-3.2.blend")
.expect("file 'examples/example-3.2.blend' should exist and be readable");
let reader = read(&blend_data)
.expect("Blender file should be parsable");