Struct vegas_lattice::Mask
source · pub struct Mask { /* private fields */ }
Expand description
A mask represents a 2D image that can be used to filter out points
§Example
use vegas_lattice::Mask;
use std::path::Path;
let mask = Mask::new(Path::new("docs/bpm.png"), 1.0).unwrap();
let keep = mask.keep(0.5, 0.5, &mut rand::thread_rng());
assert!(keep || !keep);
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnwindSafe for Mask
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