pub struct TileBounds {
pub max_deviation: f64,
pub max_age: u32,
pub min_agreement: usize,
}Expand description
TileBounds — encodes Laman threshold into tile geometry. Inspired by FM’s HolonomyBounds in holonomy-consensus/src/constraints.rs. A tile that exceeds its deviation bound is a constraint violation.
Fields§
§max_deviation: f64Maximum deviation from equilibrium position
max_age: u32Cycles before rechecking
min_agreement: usizeMinimum neighbors that must agree (Laman threshold: 2v’-3 per subgraph)
Implementations§
Source§impl TileBounds
impl TileBounds
Trait Implementations§
Source§impl Clone for TileBounds
impl Clone for TileBounds
Source§fn clone(&self) -> TileBounds
fn clone(&self) -> TileBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileBounds
impl Debug for TileBounds
Source§impl<'de> Deserialize<'de> for TileBounds
impl<'de> Deserialize<'de> for TileBounds
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
Auto Trait Implementations§
impl Freeze for TileBounds
impl RefUnwindSafe for TileBounds
impl Send for TileBounds
impl Sync for TileBounds
impl Unpin for TileBounds
impl UnsafeUnpin for TileBounds
impl UnwindSafe for TileBounds
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