pub struct VoronoiView<'a> {
pub volumes: &'a [f64],
pub surface_areas: &'a [f64],
/* private fields */
}Expand description
Borrowed geometry of every cell, in frame order.
Fields§
§volumes: &'a [f64]Cell volumes in cubic angstroms.
surface_areas: &'a [f64]Cell surface areas in square angstroms.
Implementations§
Source§impl<'a> VoronoiView<'a>
impl<'a> VoronoiView<'a>
Sourcepub fn cell_faces(&self, site: usize) -> Option<Range<usize>>
pub fn cell_faces(&self, site: usize) -> Option<Range<usize>>
Face indices for one zero-based site. Returns None outside the frame.
Sourcepub fn face(&self, face: usize) -> Option<VoronoiFace<'a>>
pub fn face(&self, face: usize) -> Option<VoronoiFace<'a>>
The geometry of a face returned by Self::cell_faces.
Auto Trait Implementations§
impl<'a> Forget for VoronoiView<'a>
impl<'a> Freeze for VoronoiView<'a>
impl<'a> Move for VoronoiView<'a>
impl<'a> RefUnwindSafe for VoronoiView<'a>
impl<'a> Send for VoronoiView<'a>
impl<'a> Sync for VoronoiView<'a>
impl<'a> Unpin for VoronoiView<'a>
impl<'a> UnsafeUnpin for VoronoiView<'a>where
&'a [f64]: UnsafeUnpin,
&'a [usize]: UnsafeUnpin,
&'a [i32]: UnsafeUnpin,
&'a [[i32; 3]]: UnsafeUnpin,
&'a [[f64; 3]]: UnsafeUnpin,
impl<'a> UnwindSafe for VoronoiView<'a>where
&'a [f64]: UnwindSafe,
&'a [usize]: UnwindSafe,
&'a [i32]: UnwindSafe,
&'a [[i32; 3]]: UnwindSafe,
&'a [[f64; 3]]: UnwindSafe,
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