Skip to content

Can't set endianess on C-like struct variant #66

@ckoehler

Description

@ckoehler

See below. Is that intended?

#[derive(Nom)]
#[nom(LittleEndian)] // this works
#[nom(Selector = "u8")]
pub enum Foo {
    #[nom(Selector = "0")]
    #[nom(BigEndian)] // this does nothing
    First {
        #[nom(BigEndian)] // this works
        the_field: u16,
        
        // more fields
    },
    // ... 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions