[][src]Struct conrod_core::widget::primitive::shape::oval::Circumference

pub struct Circumference { /* fields omitted */ }

An iterator yielding the edges of an Oval (or some section of an Oval) as a circumference represented as a series of edges.

Implementations

impl Circumference[src]

pub fn new(rect: Rect, resolution: usize) -> Self[src]

An iterator yielding the Oval's edges as a circumference represented as a series of points.

resolution is clamped to a minimum of 1 as to avoid creating a Circumference that produces NaN values.

pub fn new_section(rect: Rect, resolution: usize, radians: Scalar) -> Self[src]

Produces a new iterator that yields only a section of the Oval's circumference, where the section is described via its angle in radians.

resolution is clamped to a minimum of 1 as to avoid creating a Circumference that produces NaN values.

impl Circumference[src]

pub fn section(self, radians: Scalar) -> Self[src]

Produces a new iterator that yields only a section of the Oval's circumference, where the section is described via its angle in radians.

pub fn offset_radians(self, radians: Scalar) -> Self[src]

Rotates the position at which the iterator starts yielding points by the given radians.

This is particularly useful for yielding a different section of the circumference when using circumference_section

pub fn triangles(self) -> Triangles

Notable traits for Triangles

impl Iterator for Triangles type Item = Triangle<Point>;
[src]

Produces an Iterator yielding Triangles.

Triangles are created by joining each edge yielded by the inner Circumference to the middle of the Oval.

Trait Implementations

impl Clone for Circumference[src]

impl Iterator for Circumference[src]

type Item = Point

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for Circumference

impl Send for Circumference

impl Sync for Circumference

impl Unpin for Circumference

impl UnwindSafe for Circumference

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.