pub struct FanToListFormat<'p, P: PolygonList<'p> + ?Sized, LB: ListFormat<'p, P>>(_, _);
Expand description

A wrapper which adapts a ListFormat to work as a FanFormat, which is required for PolygonList::triangulate

Constructed with ListFormat::into_fan_format.

Trait Implementations§

source§

impl<'p, P: PolygonList<'p> + ?Sized, LB: ListFormat<'p, P>> FanFormat<'p, P> for FanToListFormat<'p, P, LB>

§

type Builder = FanToListBuilder<'p, P, <LB as ListFormat<'p, P>>::Builder>

The type responsible for constructing triangle fans. Read more
source§

fn initialize( self, polygon_list: &'p P, vi0: <P as PolygonList<'p>>::Index, vi1: <P as PolygonList<'p>>::Index, vi2: <P as PolygonList<'p>>::Index ) -> Result<Self::Builder, <Self::Builder as FanBuilder<'p, P>>::Error>

Constructs a FanFormat::Builder with an initial triangle, optionally using a reference to the PolygonList being triangulated.
source§

fn reverse_winding(self) -> ReverseFanFormat<'p, P, Self>where Self: Sized,

Constructs a FanFormat with the opposite TriangleWinding

Auto Trait Implementations§

§

impl<'p, P: ?Sized, LB> RefUnwindSafe for FanToListFormat<'p, P, LB>where LB: RefUnwindSafe, P: RefUnwindSafe,

§

impl<'p, P: ?Sized, LB> Send for FanToListFormat<'p, P, LB>where LB: Send, P: Sync,

§

impl<'p, P: ?Sized, LB> Sync for FanToListFormat<'p, P, LB>where LB: Sync, P: Sync,

§

impl<'p, P: ?Sized, LB> Unpin for FanToListFormat<'p, P, LB>where LB: Unpin,

§

impl<'p, P: ?Sized, LB> UnwindSafe for FanToListFormat<'p, P, LB>where LB: UnwindSafe, P: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V