pub struct PreparedInterpolator {
pub samples: usize,
pub simplices_supplied: usize,
pub triangles_valid: usize,
pub degenerate_skipped: usize,
/* private fields */
}Fields§
§samples: usize§simplices_supplied: usize§triangles_valid: usize§degenerate_skipped: usizeImplementations§
Source§impl PreparedInterpolator
impl PreparedInterpolator
pub fn new( samples: &[[f64; 3]], simplices: &[[usize; 3]], ) -> Result<Self, MapError>
Sourcepub fn locate(&self, p: [f64; 2]) -> Option<(u32, f64)>
pub fn locate(&self, p: [f64; 2]) -> Option<(u32, f64)>
Lowest containing simplex id and interpolated value (baseline tie rule).
Sourcepub fn approx_bytes(&self) -> u64
pub fn approx_bytes(&self) -> u64
Self-accounted bytes of the prepared structure (triangles plus R-tree node overhead).
Auto Trait Implementations§
impl Freeze for PreparedInterpolator
impl RefUnwindSafe for PreparedInterpolator
impl Send for PreparedInterpolator
impl Sync for PreparedInterpolator
impl Unpin for PreparedInterpolator
impl UnsafeUnpin for PreparedInterpolator
impl UnwindSafe for PreparedInterpolator
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more