#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ObjectCreate {
track_times: bool,
attr_phase_change: (u32, u32),
attr_creation_order: u32,
local_heap_size_hint: usize,
link_phase_change: (u32, u32),
est_link_info: (u32, u32),
}
impl Default for ObjectCreate {
fn default() -> Self {
Self {
track_times: true,
attr_phase_change: (8, 6),
attr_creation_order: 0,
local_heap_size_hint: 0,
link_phase_change: (8, 6),
est_link_info: (4, 8),
}
}
}
impl ObjectCreate {
pub fn new() -> Self {
Self::default()
}
pub fn obj_track_times(&self) -> bool {
self.track_times
}
pub fn set_obj_track_times(&mut self, track_times: bool) {
self.track_times = track_times;
}
pub fn attr_phase_change(&self) -> (u32, u32) {
self.attr_phase_change
}
pub fn set_attr_phase_change(&mut self, max_compact: u32, min_dense: u32) {
self.attr_phase_change = (max_compact, min_dense);
}
pub fn attr_creation_order(&self) -> u32 {
self.attr_creation_order
}
pub fn set_attr_creation_order(&mut self, flags: u32) {
self.attr_creation_order = flags;
}
pub fn local_heap_size_hint(&self) -> usize {
self.local_heap_size_hint
}
pub fn set_local_heap_size_hint(&mut self, size_hint: usize) {
self.local_heap_size_hint = size_hint;
}
pub fn link_phase_change(&self) -> (u32, u32) {
self.link_phase_change
}
pub fn set_link_phase_change(&mut self, max_compact: u32, min_dense: u32) {
self.link_phase_change = (max_compact, min_dense);
}
pub fn est_link_info(&self) -> (u32, u32) {
self.est_link_info
}
pub fn set_est_link_info(&mut self, link_count: u32, name_length: u32) {
self.est_link_info = (link_count, name_length);
}
}