Skip to main content

ClipSolution64

Struct ClipSolution64 

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

Result of Clipper64::execute: closed and open solutions as C++ blobs.

平面布尔 Clipper64::execute 的结果:闭合解与开放解,内部为 C++ 扁平淡点。 Iterate or call Self::into_lazy to build Path64 values lazily. 可迭代或 into_lazy 惰性得到 Path64

Implementations§

Source§

impl ClipSolution64

Source

pub fn closed_is_empty(&self) -> bool

true if there is no closed output. / 无闭合输出。

Source

pub fn open_is_empty(&self) -> bool

true if there is no open output. / 无开放输出。

Source

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

Iterator over closed paths. / 闭合路径迭代器。

Source

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

Iterator over open paths. / 开放路径迭代器。

Source

pub fn to_closed(&self) -> Paths64

Materializes all closed paths. / 物化全部闭合路径。

Source

pub fn to_open(&self) -> Paths64

Materializes all open paths. / 物化全部开放路径。

Source

pub fn into_lazy(self) -> (LazyPaths64, LazyPaths64)

Splits into two lazy wrappers (no extra copy of blobs). / 拆成两个惰性包装。

Trait Implementations§

Source§

impl Clone for ClipSolution64

Source§

fn clone(&self) -> ClipSolution64

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClipSolution64

Source§

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

Formats the value using the given formatter. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.