pub struct ParametricArc {
pub from: usize,
pub to: usize,
pub base: f64,
pub slope: f64,
}Expand description
An arc whose capacity is affine in the parameter: cap(lambda) = base + slope * lambda.
Fields§
§from: usizeTail endpoint.
to: usizeHead endpoint.
base: f64Constant part of the capacity.
slope: f64Per-unit-lambda part of the capacity.
Trait Implementations§
Source§impl Clone for ParametricArc
impl Clone for ParametricArc
Source§fn clone(&self) -> ParametricArc
fn clone(&self) -> ParametricArc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParametricArc
Source§impl Debug for ParametricArc
impl Debug for ParametricArc
Source§impl PartialEq for ParametricArc
impl PartialEq for ParametricArc
Source§fn eq(&self, other: &ParametricArc) -> bool
fn eq(&self, other: &ParametricArc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParametricArc
Auto Trait Implementations§
impl Freeze for ParametricArc
impl RefUnwindSafe for ParametricArc
impl Send for ParametricArc
impl Sync for ParametricArc
impl Unpin for ParametricArc
impl UnsafeUnpin for ParametricArc
impl UnwindSafe for ParametricArc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more