pub fn from_file(path: &str, strict: bool) -> Result<Cursor, NwgError> {
        let mut cursor = Cursor::default();

        Cursor::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut cursor)?;

        Ok(cursor)
    }
/**
        Single line helper function over the cursor builder api.

        Use a file resource.
    */
Single line helper function over the cursor builder api.
Use a file resource.
Single line helper function over the cursor builder api . Use a file resource .
pub fn from_file(path: &str, strict: bool) -> Result<Cursor, NwgError> {
        let mut cursor = Cursor::default();
        Cursor::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut cursor)?;
        Ok(cursor)
    }
pub fn from_file ( path : & str , strict : bool ) -> Result < Cursor , NwgError > { let mut cursor = Cursor :: default ( ) ; Cursor :: builder ( ) . source_file ( Some ( path ) ) . strict ( strict ) . build ( & mut cursor ) ? ; Ok ( cursor ) }
Single line helper function over the cursor builder api.
Single line helper function over the cursor builder api .
path
&str
strict
bool