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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.