Struct DeindexedListFormat

Source
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,

Source§

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, L> Freeze for DeindexedListFormat<'p, P, L>
where <P as PolygonList<'p>>::Vertex: Sized, L: Freeze, P: ?Sized,

§

impl<'p, P, L> RefUnwindSafe for DeindexedListFormat<'p, P, L>
where <P as PolygonList<'p>>::Vertex: Sized, L: RefUnwindSafe, P: RefUnwindSafe + ?Sized,

§

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

§

impl<'p, P, L> Sync for DeindexedListFormat<'p, P, L>
where <P as PolygonList<'p>>::Vertex: Sized, L: Sync, P: Sync + ?Sized,

§

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

§

impl<'p, P, L> UnwindSafe for DeindexedListFormat<'p, P, L>
where <P as PolygonList<'p>>::Vertex: Sized, L: UnwindSafe, P: RefUnwindSafe + ?Sized,

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> Mappable<T> for T

Source§

type Output<U> = U

The resulting type when T is mapped to U
Source§

fn map<F, U>(self, f: F) -> <T as Mappable<T>>::Output<U>
where F: Fn(T) -> U,

Uses function f to map all associated T types to U
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.
Source§

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

Source§

fn vzip(self) -> V