pub struct StateObject {
pub path: String,
pub width: usize,
pub role: StateRole,
pub is_4state: bool,
pub value: Vec<u8>,
pub mask: Option<Vec<u8>>,
}Expand description
The saved value of one state object.
Fields§
§path: String§width: usize§role: StateRole§is_4state: bool§value: Vec<u8>ceil(width / 8) little-endian bytes.
mask: Option<Vec<u8>>X/Z mask with the layout of value, present for four-state objects
of a four-state simulation.
Trait Implementations§
Source§impl Clone for StateObject
impl Clone for StateObject
Source§impl Debug for StateObject
impl Debug for StateObject
impl Eq for StateObject
Source§impl PartialEq for StateObject
impl PartialEq for StateObject
impl StructuralPartialEq for StateObject
Auto Trait Implementations§
impl Freeze for StateObject
impl RefUnwindSafe for StateObject
impl Send for StateObject
impl Sync for StateObject
impl Unpin for StateObject
impl UnsafeUnpin for StateObject
impl UnwindSafe for StateObject
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