Struct blend_info::DnaStrC
source · [−]pub struct DnaStrC {
pub sdna_nr: u32,
pub members: Vec<DnaStrMember>,
}
Expand description
Each Blender versions stores a number of DnaStrC blocks, which represent C structs in the original C code.
e.g.
$ ./target/release/blend_info --dna blend/factory_v279.blend | grep " Camera (" -B 1 -A 23
[SDNAnr = 25]
Camera (len=248) {
ID id;
AnimData *adt;
char type;
char dtx;
short flag;
float passepartalpha;
float clipsta;
float clipend;
float lens;
float ortho_scale;
float drawsize;
float sensor_x;
float sensor_y;
float shiftx;
float shifty;
float YF_dofdist;
Ipo *ipo;
Object *dof_ob;
GPUDOFSettings gpu_dof;
char sensor_fit;
char pad[7];
CameraStereoSettings stereo;
}
Fields
sdna_nr: u32
SDNAnr: ID within Blender for struct names
members: Vec<DnaStrMember>
A vector of struct members (type and name)
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnaStrC
impl Send for DnaStrC
impl Sync for DnaStrC
impl Unpin for DnaStrC
impl UnwindSafe for DnaStrC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more