#[non_exhaustive]pub enum Sight {
Visible {
through: Point3,
triangle: usize,
},
Hidden {
occluders: Vec<usize>,
},
Undecided,
}Expand description
What can be proven about the view from an eye to a target.
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.
Visible
Some part of the target is in view.
Fields
Hidden
No part of the target is in view.
Undecided
Neither could be proven within the budget.
Trait Implementations§
impl StructuralPartialEq for Sight
Auto Trait Implementations§
impl Freeze for Sight
impl RefUnwindSafe for Sight
impl Send for Sight
impl Sync for Sight
impl Unpin for Sight
impl UnwindSafe for Sight
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