8000 GitHub - PyYoshi/asf.rs: ASF Parser in Rust with nom
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PyYoshi/asf.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASF Parser in Rust with nom

Build Status Build status

Example

extern crate nom;
extern crate asf;

fn main() {
    let input = include_bytes!("../assets/320x180_10fps.asf");
    let asf_obj = asf::parse_asf(input);

    match asf_obj {
        Ok((_, v)) => {
            println!("Done: {:?}", v);
        }
        Err(nom::Err::Incomplete(a)) => {
            panic!("Incomplete: {:?}", a);
        }
        Err(nom::Err::Error(a)) => {
            panic!("Error: {:?}", a);
        }
        Err(nom::Err::Failure(a)) => {
            panic!("Failure: {:?}", a);
        }
    }
}

About

ASF Parser in Rust with nom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0