Skip to main content

ClipTreeSolution64

Struct ClipTreeSolution64 

Source
pub struct ClipTreeSolution64 { /* private fields */ }
Expand description

Result of Clipper64::execute_tree: optional PolyPath64 root + open paths.

树形 execute_tree 结果:可选的多边形树根指针与开放路径。 The polygon tree must be consumed via Self::into_open_and_poly_preorder or dropped; use Self::into_open_lazy to discard the tree. 多边形树须通过前序迭代消费或析构;若只要开放解可用 into_open_lazy

Implementations§

Source§

impl ClipTreeSolution64

Source

pub fn has_poly_tree(&self) -> bool

true if a non-null polygon tree root exists. / 是否存在非空多边形树根。

Source

pub fn open_is_empty(&self) -> bool

No open paths when true. / 无开放路径。

Source

pub fn iter_open(&self) -> PathsBlob64Iter<'_>

Open-path iterator. / 开放路径迭代器。

Source

pub fn to_open(&self) -> Paths64

Collects open paths. / 收集开放路径。

Source

pub fn into_open_lazy(self) -> LazyPaths64

Frees the polygon tree and returns lazy open paths only. / 释放树,仅返回开放路径惰性包装。

Source

pub fn into_open_and_poly_preorder(self) -> (LazyPaths64, PolyCxxPreorderIter64)

Lazy open paths + preorder iterator over the C++ PolyPath64 tree (frees tree on drop).

开放路径惰性包装 + C++ PolyPath64 前序迭代器(迭代器 Drop 时释放整棵子树)。

Trait Implementations§

Source§

impl Debug for ClipTreeSolution64

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for ClipTreeSolution64

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.