This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct Types { | |
| pub types: Vec<Type>, | |
| } | |
| impl Types { | |
| pub fn parse(parser: &mut Parser) -> Option<Self> { | |
| { | |
| let event = parser.peek(0)?; | |
| let _ = event.as_start_named("types")?; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In archive target/release/libhpr.rlib: | |
| hpr-c1b626a7b4712e2a.1im38lueib99jsk0.rcgu.o: file format elf64-x86-64 | |
| Disassembly of section .text._ZN33_$LT$alloc..vec..Vec$LT$T$GT$$GT$13reserve_exact17hf8b7decb4acc317cE: | |
| 0000000000000000 <<alloc::vec::Vec<T>>::reserve_exact>: | |
| 0: 48 89 f0 mov %rsi,%rax | |
| 3: 48 8b 77 10 mov 0x10(%rdi),%rsi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 18:08:47 [D ] [-.-:1:1] automake: registered events: BufWritePost. | |
| 18:08:50 [D +2.86] [-.-:1:1] automake: handling event BufWritePost. | |
| 18:08:50 [D ] [-.-:1:1] Using setting automake.ignore_filetypes=['startify'] from 'global'. | |
| 18:08:50 [D ] [-.-:1:1] automake: configured buffer for ft=rust (cargo (default)). | |
| 18:08:50 [D ] [-.-:1:1] automake: setting tick for new buffer. | |
| 18:08:50 [D ] [-.-:1:1] automake: automake for event BufWritePost. | |
| 18:08:50 [D ] [-.-:1:1] Using setting automake.events={'BufWritePost': {'delay': 0}} from 'global'. | |
| 18:08:50 [D ] [-.-:1:1] automake: neomake_do_automake: BufWritePost. | |
| 18:08:50 [D ] [-.-:1:1] automake: tick changed (new). | |
| 18:08:50 [D ] [-.-:1:1] automake: Updating tick: 5. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub fn serde_from_str_opt<'de, D, T>(deserializer: D) -> Result<Option<T>, D::Error> | |
| where | |
| D: Deserializer<'de>, | |
| T: FromStr, | |
| T::Err: Display, | |
| { | |
| String::deserialize(deserializer) | |
| .map(|s| T::from_str(&s).ok()) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[derive(Deserialize, Serialize, Debug)] | |
| #[serde(rename_all = "kebab-case")] | |
| pub struct Constant { | |
| pub name: String, | |
| pub notation: Option<Notation>, | |
| pub constant: ConstantEnum, | |
| // Is there an enum representation for those options? | |
| // pub number: Option<i32>, | |
| // pub hex: Option<String>, | |
| // pub bitpos: Option<u32>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BasicBlockData { | |
| statements: [ | |
| StorageDead(_10), | |
| StorageDead(_12), | |
| StorageDead(_11), | |
| StorageDead(_9), | |
| StorageLive(_13), | |
| StorageLive(_14), | |
| _14 = &mut _2, | |
| StorageLive(_15), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Test{ | |
| v: Vec3<f32, | |
| f: f32 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct Test { | |
| // offset 0, size 8 | |
| v1: Vec2<f32>, | |
| // offset 16, size 12 | |
| v: Vec3<f32>, | |
| // offset 28, size 4 | |
| f: f32 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct Test { | |
| v1: Vec2<f32>, | |
| v: Vec3<f32>, | |
| } | |
| // correct alignment | |
| pub struct Test { | |
| v1: Vec2<f32>, | |
| _padding1: f32, | |
| _padding2: f32, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [FieldDef { did: DefId(3/1:15 ~ rlsl_math[261e]::Input[0]::data[0]), name: data, vis: Public }, FieldDef { did: DefId(3/1:16 ~ rlsl_math[261e]::Input[0]::_location[0]), name: _location, vis: Public }] | |
| adt to_ty fields [FieldDef { did: DefId(3/1:15 ~ rlsl_math[261e]::Input[0]::data[0]), name: data, vis: Public }, FieldDef { did: DefId(3/1:16 ~ rlsl_math[261e]::Input[0]::_location[0]), name: _location, vis: Pu |