pub struct Freedom {
pub parts: BTreeMap<String, usize>,
pub total: usize,
}Expand description
How free the placed parts are (see freedom).
Fields§
§parts: BTreeMap<String, usize>Per placed part, by name, how many independent ways it can still move: 0 for one held fast or fixed, 6 for one nothing holds.
total: usizeHow many independent ways the part’s state can move as a whole.
Trait Implementations§
impl StructuralPartialEq for Freedom
Auto Trait Implementations§
impl Freeze for Freedom
impl RefUnwindSafe for Freedom
impl Send for Freedom
impl Sync for Freedom
impl Unpin for Freedom
impl UnsafeUnpin for Freedom
impl UnwindSafe for Freedom
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