Struct rlifesrc_lib::save::WorldSer
source · pub struct WorldSer {
pub config: Config,
pub conflicts: u64,
pub set_stack: Vec<SetCellSer>,
pub check_index: u32,
pub timing: Option<Duration>,
pub extra: BTreeMap<String, String>,
}
Available on crate feature
serde
only.Expand description
A representation of the world which can be easily serialized.
Fields§
§config: Config
World configuration.
conflicts: u64
Number of conflicts during the search.
set_stack: Vec<SetCellSer>
A stack to records the cells whose values are set during the search.
The cells in this table always have known states.
check_index: u32
The position of the next cell to be examined in the set_stack
.
Be careful when modifying this value.
If you have changed other things in the saved file, please set this value to 0
,
otherwise rlifesrc might gives the wrong result.
timing: Option<Duration>
Time used in searching. This field is handled by the frontend.
extra: BTreeMap<String, String>
A field for saving extra information.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for WorldSerwhere
WorldSer: Default,
impl<'de> Deserialize<'de> for WorldSerwhere WorldSer: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WorldSer
impl PartialEq for WorldSer
impl Eq for WorldSer
impl StructuralEq for WorldSer
impl StructuralPartialEq for WorldSer
Auto Trait Implementations§
impl RefUnwindSafe for WorldSer
impl Send for WorldSer
impl Sync for WorldSer
impl Unpin for WorldSer
impl UnwindSafe for WorldSer
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