pub enum SpanOp {
Carve,
Insert,
}Expand description
Re-export of roxlap_formats::edit::SpanOp so scene callers can
name the add-vs-carve flag without depending on roxlap-formats
directly. Used by Grid::set_sphere_with_colfunc /
Grid::set_rect_with_colfunc.
Operation for span-style edits.
Carve flips the listed voxels to air (per-span delslab) —
the colfunc is consulted by the internal RLE re-compile step for
newly-exposed voxels just outside the carved range (above and
below) which weren’t previously in the column’s color list.
Insert flips the listed voxels to solid (per-span insslab)
— the colfunc is consulted for the inserted voxels themselves.
Variants§
Trait Implementations§
impl Copy for SpanOp
impl Eq for SpanOp
impl StructuralPartialEq for SpanOp
Auto Trait Implementations§
impl Freeze for SpanOp
impl RefUnwindSafe for SpanOp
impl Send for SpanOp
impl Sync for SpanOp
impl Unpin for SpanOp
impl UnsafeUnpin for SpanOp
impl UnwindSafe for SpanOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more