Enum TriState
#[non_exhaustive]pub enum TriState {
False,
Default,
True,
}Expand description
NeoForge’s TriState: force a part of an action off or on, or leave it
to vanilla.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
impl Copy for TriState
impl Eq for TriState
impl StructuralPartialEq for TriState
Auto Trait Implementations§
impl Freeze for TriState
impl RefUnwindSafe for TriState
impl Send for TriState
impl Sync for TriState
impl Unpin for TriState
impl UnsafeUnpin for TriState
impl UnwindSafe for TriState
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