Struct norad::Contour [−][src]
pub struct Contour {
pub points: Vec<ContourPoint>,
// some fields omitted
}
Expand description
A single open or closed bezier path segment.
Fields
points: Vec<ContourPoint>
Implementations
pub fn new(
points: Vec<ContourPoint>,
identifier: Option<Identifier>,
lib: Option<Plist>
) -> Self
Returns a mutable reference to the contour’s lib.
Replaces the actual lib by the lib given in parameter, returning the old lib if present. Sets a new UUID v4 identifier if none is set already.
Takes the lib out of the contour, leaving a None in its place.
Returns an immutable reference to the contour’s identifier.
Replaces the actual identifier by the identifier given in parameter, returning the old identifier if present.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Contour
impl UnwindSafe for Contour
Blanket Implementations
Mutably borrows from an owned value. Read more