Skip to main content

VoronoiView

Struct VoronoiView 

Source
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>

Source

pub fn cell_faces(&self, site: usize) -> Option<Range<usize>>

Face indices for one zero-based site. Returns None outside the frame.

Source

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>
where &'a [f64]: Freeze, &'a [usize]: Freeze, &'a [i32]: Freeze, &'a [[i32; 3]]: Freeze, &'a [[f64; 3]]: Freeze,

§

impl<'a> Move for VoronoiView<'a>

§

impl<'a> RefUnwindSafe for VoronoiView<'a>

§

impl<'a> Send for VoronoiView<'a>
where &'a [f64]: Send, &'a [usize]: Send, &'a [i32]: Send, &'a [[i32; 3]]: Send, &'a [[f64; 3]]: Send,

§

impl<'a> Sync for VoronoiView<'a>

§

impl<'a> Unpin for VoronoiView<'a>
where &'a [f64]: Unpin, &'a [usize]: Unpin, &'a [i32]: Unpin, &'a [[i32; 3]]: Unpin, &'a [[f64; 3]]: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.