Module dochy_core::intf::mitem[][src]

Structs

Functions

Mutation through this ptr is undefined behavior

Vec のメモリは 最低でも8byte境界にalignされているはず(Rustはそれを保証していないが、それをしないallocatorは存在してないはず) なので、slice::align_to_mut で u64 や i32 のsliceを取得してゴリゴリ書き換えることも可能なはず vec.len が sizeof の倍数ならば、align_toしてもprefixやsuffixは発生しないだろう。(align_to_mutはそれを保証していないが)

差分がない場合、デフォルト値をコピーして差分にツッコミ、さらにその&mut を返す

Checks if the param hasn’t been modified yet

Sets itinital value(0, empty string, zero-filled vec) to the parameter. len is ignored except for vec-types. This should be needed in the C interface.