pub struct Interner { /* private fields */ }Implementations§
Source§impl Interner
impl Interner
pub fn new() -> Self
Sourcepub fn intern(&mut self, p: ImplicitPoint) -> Vid
pub fn intern(&mut self, p: ImplicitPoint) -> Vid
Intern a point: return the Vid of an exactly-coincident existing point,
or assign and return a new stable Vid. O(log n) search + O(n) insert
(n is small per the operand census).
pub fn get(&self, v: Vid) -> &ImplicitPoint
Sourcepub fn lam(&self, v: Vid) -> &Option<Lam>
pub fn lam(&self, v: Vid) -> &Option<Lam>
The cached I512 lambda for a Vid (None if off-grid/overflow).
Sourcepub fn lam_iv(&self, v: Vid) -> &([RnInterval; 3], RnInterval)
pub fn lam_iv(&self, v: Vid) -> &([RnInterval; 3], RnInterval)
The cached f64-interval lambda for a Vid (always present).
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interner
impl RefUnwindSafe for Interner
impl Send for Interner
impl Sync for Interner
impl Unpin for Interner
impl UnsafeUnpin for Interner
impl UnwindSafe for Interner
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.