Enum a2lfile::GenericIfData
source · [−]pub enum GenericIfData {
Show 19 variants
None,
Char(u32, (i8, bool)),
Int(u32, (i16, bool)),
Long(u32, (i32, bool)),
Int64(u32, (i64, bool)),
UChar(u32, (u8, bool)),
UInt(u32, (u16, bool)),
ULong(u32, (u32, bool)),
UInt64(u32, (u64, bool)),
Float(u32, f32),
Double(u32, f64),
String(u32, String),
Array(Vec<GenericIfData>),
EnumItem(u32, String),
Sequence(Vec<GenericIfData>),
TaggedStruct(HashMap<String, Vec<GenericIfDataTaggedItem>>),
TaggedUnion(HashMap<String, Vec<GenericIfDataTaggedItem>>),
Struct(Option<String>, u32, Vec<GenericIfData>),
Block {
incfile: Option<String>,
line: u32,
items: Vec<GenericIfData>,
},
}
Expand description
generic representation of data inside an IF_DATA block that can be loaded into application-specific data structures
Variants
None
Char(u32, (i8, bool))
Int(u32, (i16, bool))
Long(u32, (i32, bool))
Int64(u32, (i64, bool))
UChar(u32, (u8, bool))
UInt(u32, (u16, bool))
ULong(u32, (u32, bool))
UInt64(u32, (u64, bool))
Float(u32, f32)
Double(u32, f64)
String(u32, String)
Array(Vec<GenericIfData>)
EnumItem(u32, String)
Sequence(Vec<GenericIfData>)
TaggedStruct(HashMap<String, Vec<GenericIfDataTaggedItem>>)
TaggedUnion(HashMap<String, Vec<GenericIfDataTaggedItem>>)
Struct(Option<String>, u32, Vec<GenericIfData>)
Block
Implementations
pub fn get_block_items(
&self
) -> Result<(Option<String>, u32, &Vec<GenericIfData>), &'static str>
pub fn get_struct_items(
&self
) -> Result<(Option<String>, u32, &Vec<GenericIfData>), &'static str>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GenericIfData
impl Send for GenericIfData
impl Sync for GenericIfData
impl Unpin for GenericIfData
impl UnwindSafe for GenericIfData
Blanket Implementations
Mutably borrows from an owned value. Read more