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
Source§fn clone(&self) -> BlendSelection
fn clone(&self) -> BlendSelection
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 moreAuto Trait Implementations§
impl Forget for BlendSelection
impl Freeze for BlendSelection
impl Move for BlendSelection
impl RefUnwindSafe for BlendSelection
impl Send for BlendSelectionwhere
RawVecInner: Send,
impl Sync for BlendSelectionwhere
RawVecInner: Sync,
impl Unpin for BlendSelection
impl UnsafeUnpin for BlendSelectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for BlendSelectionwhere
RawVecInner: UnwindSafe,
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