pub struct ModelMetadata {
pub backend: Backend,
pub palette: Option<&'static [[u8; 4]]>,
pub structure: Structure,
pub replays_exactly: bool,
}Expand description
Model metadata that the UI displays.
Fields§
§backend: BackendBackend the model steps on.
palette: Option<&'static [[u8; 4]]>Colours that the display layer or the agent population draws from. None for a GPU agent
model, whose shaders write RGBA directly and declare no palette.
structure: StructureStorage layout of the model.
replays_exactly: boolWhether two builds on one seed step through identical states. true for every CPU model.
Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnsafeUnpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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