Today's (Lack of) Fun with Rust is my utter inability to get basic clear read-on...

@arclight@oldbytes.space

Today's (Lack of) Fun with Rust is my utter inability to get basic clear read-only access to content buried behind all the defensive horseshit. I don't know what else to call it. The documentation is useless, there are no usage examples so I'm randomly spraying &[], .unwrap(), and .clone() at a thing to try and beat it into giving me access to actual fucking results. I'm not intentionally trying to move or modify anything, just get read access to structs buried in an interminable nest of Option<> junk.

I don't care how this shit works. Just give me the goddamn data and let me finish writing my fucking code instead of this endless game of Simon Says.

I cannot interpret the docx_rust API well enough to list the document comments so I can write them out in CSV format. I have the "write things out in CSV format" part working but the parsed docx structure is absolutely impenetrable. And ironically there is very extensive and useless documentation for docx_rust. Some of this is inherently a problem with Microsoft's proprietary XML sludge but a huge amount is that docx_rust is documented to satisfy compliance ("we dumped all the generic trait docs and stopped") not to impart any knowledge or show usage.

Honestly I don't know if this is a Rust culture problem or just a problem with docx-rust. I'm just frustrated at not having any clear guidance on how to predict and stop all the implicit movement and how to remove all the tamper-proof seals and childproof caps and other layers of overpack between me and the data.