pub enum StencilOp {
Keep,
Zero,
Replace,
IncrementClamp,
DecrementClamp,
Invert,
IncrementWrap,
DecrementWrap,
}Expand description
Operations performed on current stencil value when comparison test passes or fails.
Variants§
Trait Implementations§
impl Copy for StencilOp
Source§impl<'de> Deserialize<'de> for StencilOp
impl<'de> Deserialize<'de> for StencilOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StencilOp
Source§impl IoLoad for StencilOp
impl IoLoad for StencilOp
Source§fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_own_extensions() -> impl Iterator<Item = &'static str>
fn load_from_bytes_with_own_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_bytes_with_own_extension_pathless( data: &[u8], extension: &str, ) -> Result<Self, IoErrorKind>
const CAN_BE_LOADED_FROM_TEXT: bool = false
fn load_from_str_with_own_extension( data: &str, path: &str, extension: &str, ) -> Result<Self, IoError>
fn load_from_str_with_own_extension_pathless( data: &str, extension: &str, ) -> Result<Self, IoErrorKind>
Source§fn can_open_own_extension(extension: &str) -> bool
fn can_open_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn load_extensions() -> impl Iterator<Item = &'static str>
fn load_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_open_extension(extension: &str) -> bool
fn can_open_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn load_from<Fs>(path: &str, fs: &mut Fs) -> Result<Self, IoError>where
Fs: IoFsRead,
fn load_from_with_extension<Fs>(
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<Self, IoError>where
Fs: IoFsRead,
Source§impl IoSave for StencilOp
impl IoSave for StencilOp
Source§fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_own_extensions() -> impl Iterator<Item = &'static str>
fn save_to_with_own_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_to_with_own_extension_pathless<W, Fs>( &self, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoErrorKind>
Source§fn save_default_extension() -> Option<&'static str>
fn save_default_extension() -> Option<&'static str>
When saving, if the extension is missing, the file will use this extension by default
Source§fn can_save_own_extension(extension: &str) -> bool
fn can_save_own_extension(extension: &str) -> bool
Don’t include the markup language extension like
json or ronSource§fn save_extensions() -> impl Iterator<Item = &'static str>
fn save_extensions() -> impl Iterator<Item = &'static str>
Also include the markup language extension like
json or ronSource§fn can_save_extension(extension: &str) -> bool
fn can_save_extension(extension: &str) -> bool
Also include the markup language extension like
json or ronfn save_to<Fs>(&self, path: &str, fs: &mut Fs) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_to_with_extension<Fs>(
&self,
path: &str,
extension: &str,
fs: &mut Fs,
) -> Result<(), IoError>where
Fs: IoFsWrite,
fn save_with_reader<W, Fs>( &self, path: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
fn save_with_reader_and_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
impl StructuralPartialEq for StencilOp
Auto Trait Implementations§
impl Freeze for StencilOp
impl RefUnwindSafe for StencilOp
impl Send for StencilOp
impl Sync for StencilOp
impl Unpin for StencilOp
impl UnsafeUnpin for StencilOp
impl UnwindSafe for StencilOp
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<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
impl<Src, Dest> CastRangeFrom<Dest> for Srcwhere
Dest: CastRangeInto<Src>,
fn cast_range_from(value: Dest) -> Src
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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