pub struct PolyTreeD {
pub nodes: Vec<PolyPathD>,
}Expand description
PolyTreeD arena
Fields§
§nodes: Vec<PolyPathD>Implementations§
Source§impl PolyTreeD
impl PolyTreeD
pub fn new() -> Self
pub fn add_child(&mut self, parent_idx: usize, path: PathD) -> usize
pub fn add_child_from_path64( &mut self, parent_idx: usize, path: &Path64, ) -> usize
pub fn root(&self) -> &PolyPathD
pub fn clear(&mut self)
pub fn set_scale(&mut self, scale: f64)
pub fn level(&self, node_idx: usize) -> u32
pub fn is_hole(&self, node_idx: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolyTreeD
impl RefUnwindSafe for PolyTreeD
impl Send for PolyTreeD
impl Sync for PolyTreeD
impl Unpin for PolyTreeD
impl UnwindSafe for PolyTreeD
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