Skip to main content

Source2d

Trait Source2d 

Source
pub trait Source2d {
    // Required method
    fn is_solid(&self, cell: [i32; 2]) -> bool;
}
Expand description

2D solidity sampler: a cell is either solid or free.

Required Methods§

Source

fn is_solid(&self, cell: [i32; 2]) -> bool

Is the 2D cell solid?

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§