pub struct DeindexedListFormat<'p, P: PolygonList<'p> + ?Sized, L: List<P::Vertex>>where
    P::Vertex: Clone,{ /* private fields */ }
Expand description

A ListFormat which outputs the triangle list by their actual vertex values, not their indices

Implementations§

source§

impl<'p, P: PolygonList<'p> + ?Sized, L: List<P::Vertex>> DeindexedListFormat<'p, P, L>where P::Vertex: Clone,

source

pub fn new(list: L) -> Self

Create a deindexed format which stores its output in the given List

Trait Implementations§

source§

impl<'p, P: Debug + PolygonList<'p> + ?Sized, L: Debug + List<P::Vertex>> Debug for DeindexedListFormat<'p, P, L>where P::Vertex: Clone,

source§

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

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

impl<'p, P: PolygonList<'p> + ?Sized, L: List<P::Vertex>> ListFormat<'p, P> for DeindexedListFormat<'p, P, L>where P::Vertex: Clone,

§

type Builder = DeindexedListBuilder<'p, P, L>

The type responsible for constructing the triangle list. Read more
source§

fn initialize( self, polygon_list: &'p P ) -> Result<Self::Builder, <Self::Builder as ListBuilder<'p, P>>::Error>

Constructs a ListFormat::Builder, optionally using a reference to the PolygonList being triangulated.
source§

fn into_fan_format(self) -> FanToListFormat<'p, P, Self>where Self: Sized,

Converts this ListFormat into a FanFormat, the format type required for triangulation.

Auto Trait Implementations§

§

impl<'p, P: ?Sized, L> RefUnwindSafe for DeindexedListFormat<'p, P, L>where L: RefUnwindSafe, P: RefUnwindSafe,

§

impl<'p, P: ?Sized, L> Send for DeindexedListFormat<'p, P, L>where L: Send, P: Sync,

§

impl<'p, P: ?Sized, L> Sync for DeindexedListFormat<'p, P, L>where L: Sync, P: Sync,

§

impl<'p, P: ?Sized, L> Unpin for DeindexedListFormat<'p, P, L>where L: Unpin,

§

impl<'p, P: ?Sized, L> UnwindSafe for DeindexedListFormat<'p, P, L>where L: 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