pub enum AD {
AD0(f64),
AD1(f64, f64),
AD2(f64, f64, f64),
}
Variants§
Implementations§
source§impl AD
impl AD
pub fn to_order(&self, n: usize) -> Self
pub fn order(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> ADIter<'_> ⓘ
pub fn iter_mut(&mut self) -> ADIterMut<'_> ⓘ
pub fn from_order(n: usize) -> Self
pub fn empty(&self) -> Self
pub fn set_x(&mut self, x: f64)
pub fn set_dx(&mut self, dx: f64)
pub fn set_ddx(&mut self, ddx: f64)
pub fn x(&self) -> f64
pub fn dx(&self) -> f64
pub fn ddx(&self) -> f64
pub fn x_ref(&self) -> Option<&f64>
pub fn dx_ref(&self) -> Option<&f64>
pub fn ddx_ref(&self) -> Option<&f64>
pub fn x_mut(&mut self) -> Option<&mut f64>
pub fn dx_mut(&mut self) -> Option<&mut f64>
pub fn ddx_mut(&mut self) -> Option<&mut f64>
Trait Implementations§
source§impl<'a> FromIterator<&'a f64> for AD
impl<'a> FromIterator<&'a f64> for AD
source§impl FromIterator<f64> for AD
impl FromIterator<f64> for AD
source§impl<'a> IntoIterator for &'a AD
impl<'a> IntoIterator for &'a AD
source§impl<'a> IntoIterator for &'a mut AD
impl<'a> IntoIterator for &'a mut AD
source§impl IntoIterator for AD
impl IntoIterator for AD
source§impl PartialOrd for AD
impl PartialOrd for AD
source§impl TrigOps for AD
impl TrigOps for AD
fn sin_cos(&self) -> (Self, Self)
fn tan(&self) -> Self
fn sinh(&self) -> Self
fn cosh(&self) -> Self
fn tanh(&self) -> Self
fn asin(&self) -> Self
fn acos(&self) -> Self
fn atan(&self) -> Self
fn asinh(&self) -> Self
fn acosh(&self) -> Self
fn atanh(&self) -> Self
fn sin(&self) -> Self
fn cos(&self) -> Self
fn asin_acos(&self) -> (Self, Self)
fn asinh_acosh(&self) -> (Self, Self)
impl Copy for AD
impl StructuralPartialEq for AD
Auto Trait Implementations§
impl Freeze for AD
impl RefUnwindSafe for AD
impl Send for AD
impl Sync for AD
impl Unpin for AD
impl UnwindSafe for AD
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more