Enum WorldDepth
#[non_exhaustive]pub enum WorldDepth {
Tested,
ThroughWalls,
}Expand description
Whether world geometry is hidden by nearer world surfaces.
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.
Tested
Test against the world’s depth, without writing depth.
ThroughWalls
Draw over world surfaces, without testing or writing depth.
Trait Implementations§
§impl Clone for WorldDepth
impl Clone for WorldDepth
§fn clone(&self) -> WorldDepth
fn clone(&self) -> WorldDepth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorldDepth
§impl Debug for WorldDepth
impl Debug for WorldDepth
impl Eq for WorldDepth
§impl PartialEq for WorldDepth
impl PartialEq for WorldDepth
impl StructuralPartialEq for WorldDepth
Auto Trait Implementations§
impl Freeze for WorldDepth
impl RefUnwindSafe for WorldDepth
impl Send for WorldDepth
impl Sync for WorldDepth
impl Unpin for WorldDepth
impl UnsafeUnpin for WorldDepth
impl UnwindSafe for WorldDepth
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