pub struct BlendSelection {
pub requested: usize,
pub applied: Vec<usize>,
pub rejected: Vec<usize>,
pub reason: Option<String>,
}Expand description
What a blend selection actually achieved.
The kernel can answer a group blend with fewer walls than were asked for — the maximal-valid-subset search drops the edges that cannot co-blend at a shared corner rather than failing outright. This says WHICH, so partial fulfilment is a statement instead of a silence.
Fields§
§requested: usizeHow many edges the caller selected.
applied: Vec<usize>Indices into that selection that carry a blend wall in the result.
rejected: Vec<usize>Indices that do not.
reason: Option<String>Why the whole selection could not be built, when something was dropped.
Implementations§
Source§impl BlendSelection
impl BlendSelection
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Every requested edge carries a wall.
Trait Implementations§
Source§impl Clone for BlendSelection
impl Clone for BlendSelection
Auto Trait Implementations§
impl Freeze for BlendSelection
impl RefUnwindSafe for BlendSelection
impl Send for BlendSelection
impl Sync for BlendSelection
impl Unpin for BlendSelection
impl UnsafeUnpin for BlendSelection
impl UnwindSafe for BlendSelection
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