pub fn generate_closed(&self) -> BasePath {
                let BasePath(mut points) = self.generate();
                if &points[0] != points.last().expect("checked in generate") {
                    let first = points[0].clone();
                    points.push(first);
                }
                BasePath(points)
            }
/// Adds an extra point if necessary to close the curve.
///
/// (the length returned by this *may or may not* be equal
/// to the length of the path produced by `generate`)
Adds an extra point if necessary to close the curve.
(the length returned by this *may or may not* be equal
to the length of the path produced by `generate`)
Adds an extra point if necessary to close the curve . ( the length returned by this * may or may not * be equal to the length of the path produced by ` generate ` )
pub fn generate_closed(&self) -> BasePath {
                let BasePath(mut points) = self.generate();
                if &points[0] != points.last().expect("checked in generate") {
                    let first = points[0].clone();
                    points.push(first);
                }
                BasePath(points)
            }
pub fn generate_closed ( & self ) -> BasePath { let BasePath ( mut points ) = self . generate ( ) ; if & points [ 0 ] != points . last ( ) . expect ( " " ) { let first = points [ 0 ] . clone ( ) ; points . push ( first ) ; } BasePath ( points ) }
Adds an extra point if necessary to close the curve.
Adds an extra point if necessary to close the curve .
&self
&self