#[non_exhaustive]pub enum FieldOfViewAlg {
RecursiveShadowcasting,
SymmetricShadowcasting,
}
Expand description
Enumeration of available FOV algorithms
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§
Source§impl FieldOfViewAlg
impl FieldOfViewAlg
pub fn field_of_view_set( self, center: Point, range: i32, fov_check: &dyn Algorithm2D, ) -> HashSet<Point>
pub fn field_of_view( self, start: Point, range: i32, fov_check: &dyn Algorithm2D, ) -> Vec<Point>
Trait Implementations§
Source§impl Clone for FieldOfViewAlg
impl Clone for FieldOfViewAlg
Source§fn clone(&self) -> FieldOfViewAlg
fn clone(&self) -> FieldOfViewAlg
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FieldOfViewAlg
Auto Trait Implementations§
impl Freeze for FieldOfViewAlg
impl RefUnwindSafe for FieldOfViewAlg
impl Send for FieldOfViewAlg
impl Sync for FieldOfViewAlg
impl Unpin for FieldOfViewAlg
impl UnwindSafe for FieldOfViewAlg
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