pub enum CutServiceability {
Servable,
Unservable {
reason: UnservableReason,
at: usize,
},
}Expand description
Whether an overlay can draw a cut’s range exactly as the main surface
would — cut_is_servable’s answer.
Variants§
Servable
The overlay draws the range; the main segment excludes it.
Unservable
The range stays on the main surface and the overlay draws nothing.
Fields
§
reason: UnservableReasonWhy.
Implementations§
Source§impl CutServiceability
impl CutServiceability
Sourcepub fn is_servable(self) -> bool
pub fn is_servable(self) -> bool
Whether the overlay serves the cut.
Trait Implementations§
Source§impl Clone for CutServiceability
impl Clone for CutServiceability
impl Copy for CutServiceability
Source§impl Debug for CutServiceability
impl Debug for CutServiceability
Source§impl Default for CutServiceability
impl Default for CutServiceability
Source§impl Display for CutServiceability
impl Display for CutServiceability
impl Eq for CutServiceability
Source§impl PartialEq for CutServiceability
impl PartialEq for CutServiceability
impl StructuralPartialEq for CutServiceability
Auto Trait Implementations§
impl Freeze for CutServiceability
impl RefUnwindSafe for CutServiceability
impl Send for CutServiceability
impl Sync for CutServiceability
impl Unpin for CutServiceability
impl UnsafeUnpin for CutServiceability
impl UnwindSafe for CutServiceability
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.