Skip to content

Instantly share code, notes, and snippets.

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")?;
}
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
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.
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())
}
#[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>,
BasicBlockData {
statements: [
StorageDead(_10),
StorageDead(_12),
StorageDead(_11),
StorageDead(_9),
StorageLive(_13),
StorageLive(_14),
_14 = &mut _2,
StorageLive(_15),
struct Test{
v: Vec3<f32,
f: f32
}
pub struct Test {
// offset 0, size 8
v1: Vec2<f32>,
// offset 16, size 12
v: Vec3<f32>,
// offset 28, size 4
f: f32
}
pub struct Test {
v1: Vec2<f32>,
v: Vec3<f32>,
}
// correct alignment
pub struct Test {
v1: Vec2<f32>,
_padding1: f32,
_padding2: f32,
[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