[−][src]Struct valora::forms::Polygon
Methods
impl Polygon
[src]
pub fn vertices<'a>(
&'a self
) -> impl DoubleEndedIterator<Item = P2> + Clone + 'a
[src]
&'a self
) -> impl DoubleEndedIterator<Item = P2> + Clone + 'a
Returns an iterator over the polygon's vertices.
pub fn vertices_mut<'a>(
&'a mut self
) -> impl DoubleEndedIterator<Item = &'a mut P2> + 'a
[src]
&'a mut self
) -> impl DoubleEndedIterator<Item = &'a mut P2> + 'a
Returns an iterator over unique references to the polgyon's vertices.
pub fn vertices_with_neighbors<'a>(
&'a self
) -> impl Iterator<Item = (P2, P2, P2)> + 'a
[src]
&'a self
) -> impl Iterator<Item = (P2, P2, P2)> + 'a
Returns an iterator over each vertex in the form (left neighbor, vertex, right neighbor).
Trait Implementations
impl Clone for Polygon
[src]
impl Debug for Polygon
[src]
impl<I> From<I> for Polygon where
I: Iterator<Item = P2>,
[src]
I: Iterator<Item = P2>,
impl FromIterator<Point2D<f32, UnknownUnit>> for Polygon
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = P2>,
[src]
T: IntoIterator<Item = P2>,
impl Paint for Polygon
[src]
impl<'_> Paint for &'_ Polygon
[src]
impl PartialEq<Polygon> for Polygon
[src]
impl Rotate for Polygon
[src]
impl StructuralPartialEq for Polygon
[src]
impl Subdivide for Polygon
[src]
fn subdivide(self) -> Self
[src]
fn subdivide_n(self, n: usize) -> Self
[src]
impl Translate for Polygon
[src]
Auto Trait Implementations
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> Paint for P where
P: Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> + Clone,
[src]
P: Iterator<Item = Event<Point2D<f32, UnknownUnit>, Point2D<f32, UnknownUnit>>> + Clone,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,