/// Constructs a new `SplineResult<T>` with empty `Vec<T>` with the specified capacity.
///
/// # Example
/// ```
/// use cubic_spline::{SplineResult};
///
/// let points = vec![(10.0, 200.0), (256.0, 390.0), (512.0, 10.0), (778.0, 200.0)];
/// let num_of_segments = 23;
///
/// let mut result: SplineResult<(f64,f64)> = SplineResult::with_capacity(points.len() * num_of_segments);
///
/// assert!(result.pts().is_empty());
/// ```
Constructs a new `SplineResult` with empty `Vec` with the specified capacity.
Constructs a new ` SplineResult ` with empty ` Vec ` with the specified capacity .
pub fn with_capacity(capacity: usize) -> Self {
    SplineResult {
      pts: Vec::with_capacity(capacity),
    }
  }
pub fn with_capacity ( capacity : usize ) -> Self { SplineResult { pts : Vec :: with_capacity ( capacity ) , } }
Constructs a new `SplineResult<T>` with empty `Vec<T>` with the specified capacity.
Constructs a new ` SplineResult<T > ` with empty ` Vec<T > ` with the specified capacity .
capacity
usize
example
```
use cubic_spline::{SplineResult}.



let mut result: SplineResult<(f64,f64)> = SplineResult::with_capacity(points.len() * num_of_segments).


` ` ` use cubic_spline :: { SplineResult } . let mut result : SplineResult< ( f64 f64 ) > = SplineResult :: with_capacity ( points . len () * num_of_segments ) .