Skip to main content

SRobotQ

Struct SRobotQ 

Source
pub struct SRobotQ<const N: usize, T: Float = f32>(pub [T; N]);
Expand description

Statically-sized joint configuration backed by [T; N].

Tuple Fields§

§0: [T; N]

Implementations§

Source§

impl<const N: usize, T: Float> SRobotQ<N, T>

Source

pub fn zeros() -> Self

Source

pub fn from_array(arr: [T; N]) -> Self

Source

pub fn as_slice(&self) -> &[T]

Source

pub fn as_mut_slice(&mut self) -> &mut [T]

Source

pub fn to_robotq(&self) -> RobotQ<T>

Source

pub fn force_from_robotq(q: &RobotQ<T>) -> Self

Source

pub fn norm(&self) -> T

Source

pub fn dot(&self, other: &Self) -> T

Source

pub fn map(&self, f: impl Fn(T) -> T) -> Self

Source

pub fn sum(&self) -> T

Source

pub fn splat(val: T) -> Self

Source

pub fn from_fn(f: impl Fn(usize) -> T) -> Self

Source

pub fn norm_squared(&self) -> T

Source

pub fn normalize(&self) -> Self

Source

pub fn distance(&self, other: &Self) -> T

Source

pub fn distance_squared(&self, other: &Self) -> T

Source

pub fn abs(&self) -> Self

Source

pub fn clamp(&self, min: &Self, max: &Self) -> Self

Source

pub fn clamp_scalar(&self, min: T, max: T) -> Self

Source

pub fn max_element(&self) -> T

Source

pub fn min_element(&self) -> T

Source

pub fn linf_norm(&self) -> T

Source

pub fn elementwise_mul(&self, other: &Self) -> Self

Source

pub fn elementwise_div(&self, other: &Self) -> Self

Source

pub fn zip_map(&self, other: &Self, f: impl Fn(T, T) -> T) -> Self

Source

pub fn sqrt(&self) -> Self

Source

pub fn mul_add(&self, mul: &Self, add: &Self) -> Self

Source

pub fn any_non_finite(&self) -> bool

Source

pub fn any_gt(&self, other: &Self) -> bool

Source

pub fn any_lt(&self, other: &Self) -> bool

Source

pub fn is_close(&self, other: &Self, tol: T) -> bool

Source

pub fn interpolate(&self, other: &Self, t: T) -> Self

Source§

impl<const N: usize> SRobotQ<N, f32>

Source

pub const fn from_array_d(arr: [f64; N]) -> Self

Trait Implementations§

Source§

impl<const N: usize, T: Float + AbsDiffEq<Epsilon = T>> AbsDiffEq for SRobotQ<N, T>

Source§

type Epsilon = T

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> T

The default tolerance to use when testing values that are close together. Read more
Source§

fn abs_diff_eq(&self, other: &Self, epsilon: T) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
Source§

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
Source§

impl<const N: usize> Add<SRobotQ<N>> for &RobotQ

Source§

type Output = SRobotQ<N>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f32>

Performs the + operation. Read more
Source§

impl<const N: usize> Add<SRobotQ<N>> for SRobotQ<N, f64>

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f64>

Performs the + operation. Read more
Source§

impl<const N: usize> Add<SRobotQ<N, f64>> for SRobotQ<N, f32>

Source§

type Output = SRobotQ<N>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: SRobotQ<N, f64>) -> SRobotQ<N, f32>

Performs the + operation. Read more
Source§

impl<const N: usize, T: Float> Add for SRobotQ<N, T>

Source§

type Output = SRobotQ<N, T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl<const N: usize> AddAssign<SRobotQ<N>> for SRobotQ<N, f64>

Source§

fn add_assign(&mut self, rhs: SRobotQ<N, f32>)

Performs the += operation. Read more
Source§

impl<const N: usize> AddAssign<SRobotQ<N, f64>> for SRobotQ<N, f32>

Source§

fn add_assign(&mut self, rhs: SRobotQ<N, f64>)

Performs the += operation. Read more
Source§

impl<const N: usize, T: Float> AddAssign for SRobotQ<N, T>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<const N: usize, T: Float> AsMut<[T]> for SRobotQ<N, T>

Source§

fn as_mut(&mut self) -> &mut [T]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<const N: usize, T: Float> AsMut<[T; N]> for SRobotQ<N, T>

Source§

fn as_mut(&mut self) -> &mut [T; N]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<const N: usize, T: Float> AsRef<[T]> for SRobotQ<N, T>

Source§

fn as_ref(&self) -> &[T]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<const N: usize, T: Float> AsRef<[T; N]> for SRobotQ<N, T>

Source§

fn as_ref(&self) -> &[T; N]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<const N: usize, T: Clone + Float> Clone for SRobotQ<N, T>

Source§

fn clone(&self) -> SRobotQ<N, T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const N: usize, T: Debug + Float> Debug for SRobotQ<N, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize, T: Float> Default for SRobotQ<N, T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const N: usize, T: Float> Div<T> for SRobotQ<N, T>

Source§

type Output = SRobotQ<N, T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> Self

Performs the / operation. Read more
Source§

impl<const N: usize> Div<f32> for SRobotQ<N, f64>

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> SRobotQ<N, f64>

Performs the / operation. Read more
Source§

impl<const N: usize> Div<f64> for SRobotQ<N, f32>

Source§

type Output = SRobotQ<N>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> SRobotQ<N, f32>

Performs the / operation. Read more
Source§

impl<const N: usize, T: Float> DivAssign<T> for SRobotQ<N, T>

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<const N: usize> DivAssign<f32> for SRobotQ<N, f64>

Source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
Source§

impl<const N: usize> DivAssign<f64> for SRobotQ<N, f32>

Source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
Source§

impl<const N: usize, T: Float> From<&[T; N]> for SRobotQ<N, T>

Source§

fn from(arr: &[T; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<&[f32; N]> for SRobotQ<N, f64>

Source§

fn from(arr: &[f32; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<&[f64; N]> for SRobotQ<N, f32>

Source§

fn from(arr: &[f64; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<&SRobotQ<N>> for RobotQ<f64>

Source§

fn from(q: &SRobotQ<N, f32>) -> RobotQ<f64>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<&SRobotQ<N, T>> for RobotQ<T>

Source§

fn from(sq: &SRobotQ<N, T>) -> RobotQ<T>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<&SRobotQ<N, T>> for SRobotQ<N, T>

Source§

fn from(q: &SRobotQ<N, T>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<&SRobotQ<N, f64>> for RobotQ<f32>

Source§

fn from(q: &SRobotQ<N, f64>) -> RobotQ<f32>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<[T; N]> for SRobotQ<N, T>

Source§

fn from(arr: [T; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[f32; N]> for SRobotQ<N, f64>

Source§

fn from(arr: [f32; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[f64; N]> for SRobotQ<N, f32>

Source§

fn from(arr: [f64; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N>> for [f64; N]

Source§

fn from(q: SRobotQ<N, f32>) -> [f64; N]

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N>> for RobotQ<f64>

Source§

fn from(q: SRobotQ<N, f32>) -> RobotQ<f64>

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N>> for SRobotQ<N, f64>

Source§

fn from(q: SRobotQ<N, f32>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N>> for Vec<f64>

Source§

fn from(q: SRobotQ<N, f32>) -> Vec<f64>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<SRobotQ<N, T>> for [T; N]

Source§

fn from(q: SRobotQ<N, T>) -> [T; N]

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<SRobotQ<N, T>> for RobotQ<T>

Source§

fn from(q: SRobotQ<N, T>) -> RobotQ<T>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> From<SRobotQ<N, T>> for Vec<T>

Source§

fn from(q: SRobotQ<N, T>) -> Vec<T>

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N, f64>> for [f32; N]

Source§

fn from(q: SRobotQ<N, f64>) -> [f32; N]

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N, f64>> for RobotQ<f32>

Source§

fn from(q: SRobotQ<N, f64>) -> RobotQ<f32>

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N, f64>> for SRobotQ<N, f32>

Source§

fn from(q: SRobotQ<N, f64>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<SRobotQ<N, f64>> for Vec<f32>

Source§

fn from(q: SRobotQ<N, f64>) -> Vec<f32>

Converts to this type from the input type.
Source§

impl<const N: usize, T: Float> Index<usize> for SRobotQ<N, T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, i: usize) -> &T

Performs the indexing (container[index]) operation. Read more
Source§

impl<const N: usize, T: Float> IndexMut<usize> for SRobotQ<N, T>

Source§

fn index_mut(&mut self, i: usize) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<const N: usize> Mul<SRobotQ<N>> for f32

Source§

type Output = SRobotQ<N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f32>

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<SRobotQ<N>> for f64

Source§

type Output = SRobotQ<N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f32>

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<SRobotQ<N, f64>> for f32

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SRobotQ<N, f64>) -> SRobotQ<N, f64>

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<SRobotQ<N, f64>> for f64

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SRobotQ<N, f64>) -> SRobotQ<N, f64>

Performs the * operation. Read more
Source§

impl<const N: usize, T: Float> Mul<T> for SRobotQ<N, T>

Source§

type Output = SRobotQ<N, T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<f32> for SRobotQ<N, f64>

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> SRobotQ<N, f64>

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<f64> for SRobotQ<N, f32>

Source§

type Output = SRobotQ<N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> SRobotQ<N, f32>

Performs the * operation. Read more
Source§

impl<const N: usize, T: Float> MulAssign<T> for SRobotQ<N, T>

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<const N: usize> MulAssign<f32> for SRobotQ<N, f64>

Source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
Source§

impl<const N: usize> MulAssign<f64> for SRobotQ<N, f32>

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl<const N: usize, T: Float> Neg for SRobotQ<N, T>

Source§

type Output = SRobotQ<N, T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<const N: usize, T: PartialEq + Float> PartialEq for SRobotQ<N, T>

Source§

fn eq(&self, other: &SRobotQ<N, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: usize, T: Float + RelativeEq + AbsDiffEq<Epsilon = T>> RelativeEq for SRobotQ<N, T>

Source§

fn default_max_relative() -> T

The default relative tolerance for testing values that are far-apart. Read more
Source§

fn relative_eq(&self, other: &Self, epsilon: T, max_relative: T) -> bool

A test for equality that uses a relative comparison if the values are far apart.
Source§

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
Source§

impl<const N: usize> Sub<SRobotQ<N>> for &RobotQ

Source§

type Output = SRobotQ<N>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f32>

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<SRobotQ<N>> for SRobotQ<N, f64>

Source§

type Output = SRobotQ<N, f64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: SRobotQ<N, f32>) -> SRobotQ<N, f64>

Performs the - operation. Read more
Source§

impl<const N: usize> Sub<SRobotQ<N, f64>> for SRobotQ<N, f32>

Source§

type Output = SRobotQ<N>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: SRobotQ<N, f64>) -> SRobotQ<N, f32>

Performs the - operation. Read more
Source§

impl<const N: usize, T: Float> Sub for SRobotQ<N, T>

Source§

type Output = SRobotQ<N, T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl<const N: usize> SubAssign<SRobotQ<N>> for SRobotQ<N, f64>

Source§

fn sub_assign(&mut self, rhs: SRobotQ<N, f32>)

Performs the -= operation. Read more
Source§

impl<const N: usize> SubAssign<SRobotQ<N, f64>> for SRobotQ<N, f32>

Source§

fn sub_assign(&mut self, rhs: SRobotQ<N, f64>)

Performs the -= operation. Read more
Source§

impl<const N: usize, T: Float> SubAssign for SRobotQ<N, T>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<const N: usize, T: Float> TryFrom<&[T]> for SRobotQ<N, T>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(slice: &[T]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&[f32]> for SRobotQ<N, f64>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(slice: &[f32]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&[f64]> for SRobotQ<N, f32>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(slice: &[f64]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize, T: Float> TryFrom<&ArrayBase<OwnedRepr<T>, Dim<[usize; 1]>>> for SRobotQ<N, T>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: &RobotQ<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>> for SRobotQ<N, f64>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: &RobotQ<f32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for SRobotQ<N, f32>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: &RobotQ<f64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize, T: Float> TryFrom<&Vec<T>> for SRobotQ<N, T>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: &Vec<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&Vec<f32>> for SRobotQ<N, f64>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: &Vec<f32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&Vec<f64>> for SRobotQ<N, f32>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: &Vec<f64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize, T: Float> TryFrom<ArrayBase<OwnedRepr<T>, Dim<[usize; 1]>>> for SRobotQ<N, T>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: RobotQ<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>> for SRobotQ<N, f64>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: RobotQ<f32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for SRobotQ<N, f32>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(q: RobotQ<f64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize, T: Float> TryFrom<Vec<T>> for SRobotQ<N, T>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: Vec<T>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<Vec<f32>> for SRobotQ<N, f64>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: Vec<f32>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<Vec<f64>> for SRobotQ<N, f32>

Source§

type Error = DekeError

The type returned in the event of a conversion error.
Source§

fn try_from(v: Vec<f64>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize, T: Float + UlpsEq + AbsDiffEq<Epsilon = T>> UlpsEq for SRobotQ<N, T>

Source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
Source§

fn ulps_eq(&self, other: &Self, epsilon: T, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
Source§

fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
Source§

impl<const N: usize, T: Copy + Float> Copy for SRobotQ<N, T>

Source§

impl<const N: usize, T: Float> StructuralPartialEq for SRobotQ<N, T>

Auto Trait Implementations§

§

impl<const N: usize, T> Freeze for SRobotQ<N, T>
where T: Freeze,

§

impl<const N: usize, T> RefUnwindSafe for SRobotQ<N, T>
where T: RefUnwindSafe,

§

impl<const N: usize, T> Send for SRobotQ<N, T>
where T: Send,

§

impl<const N: usize, T> Sync for SRobotQ<N, T>
where T: Sync,

§

impl<const N: usize, T> Unpin for SRobotQ<N, T>
where T: Unpin,

§

impl<const N: usize, T> UnsafeUnpin for SRobotQ<N, T>
where T: UnsafeUnpin,

§

impl<const N: usize, T> UnwindSafe for SRobotQ<N, T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<const N: usize, T, E> SRobotQLike<N, E> for T
where E: Into<DekeError>, T: TryInto<SRobotQ<N>, Error = E, Error = E> + TryInto<SRobotQ<N, f64>>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.