Struct caminos_lib::topology::projective::FlatGeometryCache
source · pub struct FlatGeometryCache {
pub geometry: Box<dyn FlatGeometry>,
pub lines_by_point: Vec<Vec<(usize, usize)>>,
pub points_by_line: Vec<Vec<(usize, usize)>>,
}
Fields§
§geometry: Box<dyn FlatGeometry>
§lines_by_point: Vec<Vec<(usize, usize)>>
lines_by_point[point][point_index]=(line,line_index)
satisfying points_by_line[line][line_index]=(point,point_index)
.
points_by_line: Vec<Vec<(usize, usize)>>
points_by_line[line][line_index]=(point,point_index)
satisfying lines_by_point[point][point_index]=(line,line_index)
.
Implementations§
Trait Implementations§
source§impl Debug for FlatGeometryCache
impl Debug for FlatGeometryCache
source§impl Quantifiable for FlatGeometryCache
impl Quantifiable for FlatGeometryCache
source§fn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Get the total memory currently being employed by the implementing type. Both stack and heap.
source§fn print_memory_breakdown(&self)
fn print_memory_breakdown(&self)
Prints by stdout how much memory is used per component.
source§fn forecast_total_memory(&self) -> usize
fn forecast_total_memory(&self) -> usize
Get an estimation on how much memory the type could reach during the simulation.
Auto Trait Implementations§
impl !RefUnwindSafe for FlatGeometryCache
impl !Send for FlatGeometryCache
impl !Sync for FlatGeometryCache
impl Unpin for FlatGeometryCache
impl !UnwindSafe for FlatGeometryCache
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