pub fn parse_single_fixture(ra_fixture: &str) -> Option<FixtureEntry> {
    if !ra_fixture.lines().any(|it| it.trim_start().starts_with("//-")) {
        return None;
    }

    let fixtures = parse_fixture(ra_fixture);
    if fixtures.len() > 1 {
        panic!("too many fixtures");
    }
    fixtures.into_iter().nth(0)
}
/// Same as `parse_fixture`, except it allow empty fixture
Same as `parse_fixture`, except it allow empty fixture
Same as ` parse_fixture ` except it allow empty fixture
pub fn parse_single_fixture(ra_fixture: &str) -> Option<FixtureEntry> {
    if !ra_fixture.lines().any(|it| it.trim_start().starts_with("//-")) {
        return None;
    }
    let fixtures = parse_fixture(ra_fixture);
    if fixtures.len() > 1 {
        panic!("too many fixtures");
    }
    fixtures.into_iter().nth(0)
}
pub fn parse_single_fixture ( ra_fixture : & str ) -> Option < FixtureEntry > { if ! ra_fixture . lines ( ) . any ( | it | it . trim_start ( ) . starts_with ( " " ) ) { return None ; } let fixtures = parse_fixture ( ra_fixture ) ; if fixtures . len ( ) > 1 { panic ! ( " " ) ; } fixtures . into_iter ( ) . nth ( 0 ) }
Same as `parse_fixture`, except it allow empty fixture
Same as ` parse_fixture ` except it allow empty fixture
ra_fixture
&str
ra_fixture
&str