Enum nannou::geom::line::Cap [−][src]
pub enum Cap { Butt, Round { resolution: usize, }, Square, }
The kind of geometry with which a line may be capped.
Variants
Butt
A square edge that does not protrude past the ends of the line..
This is equivalent to having no cap at all.
Round
Rounded caps with a radius equal to half the line's thickness.
Fields of Round
resolution: usize | The number of sides used to represent the cap. |
Square
A square cap that protudes from the end of the line a distance that is equal to half of the line's thickness.
Trait Implementations
impl Copy for Cap
[src]
impl Copy for Cap
impl Clone for Cap
[src]
impl Clone for Cap
fn clone(&self) -> Cap
[src]
fn clone(&self) -> Cap
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Cap
[src]
impl Debug for Cap
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Cap
[src]
impl PartialEq for Cap
fn eq(&self, other: &Cap) -> bool
[src]
fn eq(&self, other: &Cap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Cap) -> bool
[src]
fn ne(&self, other: &Cap) -> bool
This method tests for !=
.
impl Default for Cap
[src]
impl Default for Cap