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 PartialEq<Stencil> for Stencil
impl PartialEq<Stencil> for Stencil
source§impl PartialOrd<Stencil> for Stencil
impl PartialOrd<Stencil> for Stencil
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Stencil
impl StructuralPartialEq for Stencil
Auto Trait Implementations§
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