Enum graphics::draw_state::Stencil
source · pub enum Stencil {
Clip(u8),
Inside(u8),
Outside(u8),
Increment,
}
Expand description
Stencil buffer settings.
Variants§
Clip(u8)
Draw to stencil buffer.
Inside(u8)
Draw pixels that have stencil value.
Outside(u8)
Draw pixels that does not have stencil value.
Increment
Increment stencil buffer.
Trait Implementations§
source§impl PartialOrd for Stencil
impl PartialOrd for Stencil
impl Copy for Stencil
impl StructuralPartialEq for Stencil
Auto Trait Implementations§
impl Freeze for Stencil
impl RefUnwindSafe for Stencil
impl Send for Stencil
impl Sync for Stencil
impl Unpin for Stencil
impl UnwindSafe for Stencil
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)