pub struct VolumeEntry {
pub model: usize,
pub kind: u8,
pub mesh: usize,
pub name: Option<String>,
pub transform: Option<Transform>,
pub program: String,
pub version: u32,
pub document: Vec<u8>,
}Expand description
One entry of the volume chunk.
Fields§
§model: usizeThe model’s leaf, as an index into the scene’s nodes.
kind: u8What the entry is: one of the VOLUME_* kinds. Other values are
reserved, carried as they are, and mean nothing.
mesh: usizeThe entry’s mesh, as an index into the scene’s meshes.
name: Option<String>The entry’s name.
transform: Option<Transform>From the entry’s mesh to the model leaf’s own space; None is the
identity. An uncut model has none.
program: StringThe program the entry belongs to, such as nudl, by the rules of a
program name (crate::is_program_name). Every entry has one, even
without a document.
version: u32The program’s own version of document.
document: Vec<u8>A modifier’s settings, or what the program keeps about the entry, in the program’s own format.
Implementations§
Trait Implementations§
Source§impl Clone for VolumeEntry
impl Clone for VolumeEntry
Source§impl Debug for VolumeEntry
impl Debug for VolumeEntry
Source§impl Default for VolumeEntry
impl Default for VolumeEntry
Source§impl PartialEq for VolumeEntry
impl PartialEq for VolumeEntry
impl StructuralPartialEq for VolumeEntry
Auto Trait Implementations§
impl Forget for VolumeEntry
impl Freeze for VolumeEntry
impl Move for VolumeEntry
impl RefUnwindSafe for VolumeEntry
impl Send for VolumeEntrywhere
RawVecInner: Send,
impl Sync for VolumeEntrywhere
RawVecInner: Sync,
impl Unpin for VolumeEntry
impl UnsafeUnpin for VolumeEntry
impl UnwindSafe for VolumeEntrywhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more