Skip to main content

Quantity

Struct Quantity 

Source
pub struct Quantity<U = Dimensionless>(/* private fields */);
Expand description

A scalar carrying a physical unit.

Implementations§

Source§

impl<U> Quantity<U>

Source

pub const fn value(&self) -> TensorRank0

Returns the value with its unit discarded.

Source

pub const fn value_as<V>(&self) -> TensorRank0
where U: Is<V>,

Returns the value, stating the unit being discarded.

Source§

impl<U> Quantity<U>

Source

pub fn abs(self) -> Self

Returns the absolute value, which leaves the unit alone.

Source

pub fn is_nan(&self) -> bool

Returns whether the value is not a number.

Source

pub fn differs(self, quantity: Self, epsilon: TensorRank0) -> bool

Returns whether two quantities differ by more than the epsilon relatively, at least one of them being large enough for that ratio to mean anything.

Source

pub fn differs_severely(self, quantity: Self, epsilon: TensorRank0) -> bool

Returns whether two quantities differ absolutely as well as relatively.

Source

pub fn total_cmp(&self, quantity: &Self) -> Ordering

Returns how two quantities of the same unit order, totally.

Source

pub fn min(self, quantity: Self) -> Self

Returns the lesser of two quantities of the same unit.

Source

pub fn max(self, quantity: Self) -> Self

Returns the greater of two quantities of the same unit.

Source§

impl<U> Quantity<U>
where U: UnitHalves,

Source

pub const fn halves( self, ) -> (Quantity<<U as UnitHalves>::First>, Quantity<<U as UnitHalves>::Second>)

Returns the quantity twice over, as the units the halves of a tuple take from it.

Source§

impl Quantity<Dimensionless>

Source

pub fn ceil(self) -> Self

Returns the smallest integer greater than or equal to the value.

Source

pub fn floor(self) -> Self

Returns the largest integer less than or equal to the value.

Source

pub fn powi(self, n: i32) -> Self

Raises to an integer power.

Source

pub fn powf(self, n: TensorRank0) -> Self

Raises to a power.

Source

pub fn sqrt(self) -> Self

Returns the square root.

Source

pub fn ln(self) -> Self

Returns the natural logarithm.

Source

pub fn log2(self) -> Self

Returns the base-2 logarithm.

Source

pub fn exp(self) -> Self

Returns the exponential.

Source

pub fn sin(self) -> Self

Returns the sine.

Source

pub fn cos(self) -> Self

Returns the cosine.

Source§

impl Quantity<Length>

Source

pub const fn in_meters(&self) -> TensorRank0

How many metres the quantity is.

Source

pub const fn in_millimeters(&self) -> TensorRank0

How many millimetres the quantity is.

Source

pub const fn in_micrometers(&self) -> TensorRank0

How many micrometres the quantity is.

Source

pub const fn in_nanometers(&self) -> TensorRank0

How many nanometres the quantity is.

Source

pub const fn in_centimeters(&self) -> TensorRank0

How many centimetres the quantity is.

Source

pub const fn in_kilometers(&self) -> TensorRank0

How many kilometres the quantity is.

Source

pub const fn in_inches(&self) -> TensorRank0

How many inches the quantity is.

Source

pub const fn in_feet(&self) -> TensorRank0

How many feet the quantity is.

Source§

impl Quantity<Area>

Source

pub const fn in_square_meters(&self) -> TensorRank0

How many square metres the quantity is.

Source

pub const fn in_square_millimeters(&self) -> TensorRank0

How many square millimetres the quantity is.

Source

pub const fn in_square_centimeters(&self) -> TensorRank0

How many square centimetres the quantity is.

Source§

impl Quantity<Volume>

Source

pub const fn in_cubic_meters(&self) -> TensorRank0

How many cubic metres the quantity is.

Source

pub const fn in_cubic_millimeters(&self) -> TensorRank0

How many cubic millimetres the quantity is.

Source

pub const fn in_cubic_centimeters(&self) -> TensorRank0

How many cubic centimetres the quantity is.

Source

pub const fn in_liters(&self) -> TensorRank0

How many litres the quantity is.

Source§

impl Quantity<Time>

Source

pub const fn in_seconds(&self) -> TensorRank0

How many seconds the quantity is.

Source

pub const fn in_milliseconds(&self) -> TensorRank0

How many milliseconds the quantity is.

Source

pub const fn in_microseconds(&self) -> TensorRank0

How many microseconds the quantity is.

Source

pub const fn in_minutes(&self) -> TensorRank0

How many minutes the quantity is.

Source

pub const fn in_hours(&self) -> TensorRank0

How many hours the quantity is.

Source§

impl Quantity<Rate>

Source

pub const fn in_per_second(&self) -> TensorRank0

How many reciprocal seconds the quantity is.

Source

pub const fn in_per_minute(&self) -> TensorRank0

How many reciprocal minutes the quantity is.

Source

pub const fn in_per_hour(&self) -> TensorRank0

How many reciprocal hours the quantity is.

Source

pub const fn in_hertz(&self) -> TensorRank0

How many hertz the quantity is.

Source§

impl Quantity<Stress>

Source

pub const fn in_pascals(&self) -> TensorRank0

How many pascals the quantity is.

Source

pub const fn in_kilopascals(&self) -> TensorRank0

How many kilopascals the quantity is.

Source

pub const fn in_megapascals(&self) -> TensorRank0

How many megapascals the quantity is.

Source

pub const fn in_gigapascals(&self) -> TensorRank0

How many gigapascals the quantity is.

Source

pub const fn in_bars(&self) -> TensorRank0

How many bars the quantity is.

Source

pub const fn in_psi(&self) -> TensorRank0

How many pounds per square inch the quantity is.

Source

pub const fn in_ksi(&self) -> TensorRank0

How many kips per square inch the quantity is.

Source§

impl Quantity<Force>

Source

pub const fn in_newtons(&self) -> TensorRank0

How many newtons the quantity is.

Source

pub const fn in_millinewtons(&self) -> TensorRank0

How many millinewtons the quantity is.

Source

pub const fn in_kilonewtons(&self) -> TensorRank0

How many kilonewtons the quantity is.

Source

pub const fn in_meganewtons(&self) -> TensorRank0

How many meganewtons the quantity is.

Source

pub const fn in_pounds_force(&self) -> TensorRank0

How many pounds force the quantity is.

Source§

impl Quantity<Energy>

Source

pub const fn in_joules(&self) -> TensorRank0

How many joules the quantity is.

Source

pub const fn in_millijoules(&self) -> TensorRank0

How many millijoules the quantity is.

Source

pub const fn in_kilojoules(&self) -> TensorRank0

How many kilojoules the quantity is.

Source

pub const fn in_electronvolts(&self) -> TensorRank0

How many electronvolts the quantity is.

Source§

impl Quantity<Entropy>

Source

pub const fn in_joules_per_kelvin(&self) -> TensorRank0

How many joules per kelvin the quantity is.

Source§

impl Quantity<Action>

Source

pub const fn in_joule_seconds(&self) -> TensorRank0

How many joule seconds the quantity is.

Source§

impl Quantity<Amount>

Source

pub const fn in_moles(&self) -> TensorRank0

How many moles the quantity is.

Source

pub const fn in_millimoles(&self) -> TensorRank0

How many millimoles the quantity is.

Source§

impl Quantity<ReciprocalAmount>

Source

pub const fn in_per_mole(&self) -> TensorRank0

How many reciprocal moles the quantity is.

Source§

impl Quantity<MolarEntropy>

Source

pub const fn in_joules_per_mole_kelvin(&self) -> TensorRank0

How many joules per mole kelvin the quantity is.

Source§

impl Quantity<MolarEnergy>

Source

pub const fn in_joules_per_mole(&self) -> TensorRank0

How many joules per mole the quantity is.

Source

pub const fn in_kilojoules_per_mole(&self) -> TensorRank0

How many kilojoules per mole the quantity is.

Source§

impl Quantity<ForcePerLength>

Source

pub const fn in_newtons_per_meter(&self) -> TensorRank0

How many newtons per metre the quantity is.

Source

pub const fn in_piconewtons_per_nanometer(&self) -> TensorRank0

How many piconewtons per nanometre the quantity is.

Source§

impl Quantity<Velocity>

Source

pub const fn in_meters_per_second(&self) -> TensorRank0

How many metres per second the quantity is.

Source

pub const fn in_millimeters_per_second(&self) -> TensorRank0

How many millimetres per second the quantity is.

Source

pub const fn in_kilometers_per_hour(&self) -> TensorRank0

How many kilometres per hour the quantity is.

Source§

impl Quantity<Charge>

Source

pub const fn in_coulombs(&self) -> TensorRank0

How many coulombs the quantity is.

Source§

impl Quantity<Viscosity>

Source

pub const fn in_pascal_seconds(&self) -> TensorRank0

How many pascal seconds the quantity is.

Source

pub const fn in_poise(&self) -> TensorRank0

How many poise the quantity is.

Source

pub const fn in_centipoise(&self) -> TensorRank0

How many centipoise the quantity is.

Source§

impl Quantity<Temperature>

Source

pub const fn in_kelvin(&self) -> TensorRank0

How many kelvin the quantity is.

Source§

impl Quantity<ReciprocalTemperature>

Source

pub const fn in_per_kelvin(&self) -> TensorRank0

How many reciprocal kelvin the quantity is.

Source

pub const fn in_per_celsius(&self) -> TensorRank0

How many reciprocal degrees celsius the quantity is.

Source§

impl Quantity<StressPerLength>

Source

pub const fn in_pascals_per_meter(&self) -> TensorRank0

How many pascals per metre the quantity is.

Source

pub const fn in_megapascals_per_millimeter(&self) -> TensorRank0

How many megapascals per millimetre the quantity is.

Source§

impl Quantity<PowerPerLengthTemperature>

Source

pub const fn in_watts_per_meter_kelvin(&self) -> TensorRank0

How many watts per metre kelvin the quantity is.

Source§

impl Quantity<Dimensionless>

Source

pub const fn in_percent(&self) -> TensorRank0

How many percent the quantity is.

Source§

impl Quantity<Temperature>

Source

pub const fn in_celsius(&self) -> TensorRank0

How many degrees celsius the temperature is.

Source

pub const fn in_fahrenheit(&self) -> TensorRank0

How many degrees fahrenheit the temperature is.

Trait Implementations§

Source§

impl<U> Add<&Quantity<U>> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the + operator.
Source§

fn add(self, quantity: &Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<U> Add<Quantity<U>> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the + operator.
Source§

fn add(self, quantity: Quantity<U>) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Quantity> for TensorRank0

Source§

type Output = Quantity

The resulting type after applying the + operator.
Source§

fn add(self, quantity: Quantity<Dimensionless>) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for Quantity<Dimensionless>

Source§

type Output = Quantity

The resulting type after applying the + operator.
Source§

fn add(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the + operation. Read more
Source§

impl<U> Add for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the + operator.
Source§

fn add(self, quantity: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<U> Add for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the + operator.
Source§

fn add(self, quantity: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<U> AddAssign<&Quantity<U>> for Quantity<U>

Source§

fn add_assign(&mut self, quantity: &Self)

Performs the += operation. Read more
Source§

impl<U> AddAssign for Quantity<U>

Source§

fn add_assign(&mut self, quantity: Self)

Performs the += operation. Read more
Source§

impl<U> Clone for Quantity<U>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<U> Debug for Quantity<U>

Source§

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

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

impl<U> Default for Quantity<U>

Source§

fn default() -> Self

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

impl<U, T> Differentiate<T> for Quantity<U>
where U: UnitDiv<T>,

Source§

type Derivative = Quantity<<U as UnitDiv<T>>::Output>

The derivative with respect to the variable of integration.
Source§

impl<U> Display for Quantity<U>

Source§

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

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

impl<U> Div<&f64> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the / operator.
Source§

fn div(self, tensor_rank_0: &TensorRank0) -> Self::Output

Performs the / operation. Read more
Source§

impl<U> Div<Quantity<U>> for TensorRank0
where U: UnitInv,

Source§

type Output = Quantity<<U as UnitInv>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U, V> Div<Quantity<V>> for &Quantity<U>
where U: UnitDiv<V>,

Source§

type Output = Quantity<<U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, U, V> Div<Quantity<V>> for &TensorRank1<D, I, U>
where U: UnitDiv<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, J, U, V> Div<Quantity<V>> for &TensorRank2<D, I, J, U>
where U: UnitDiv<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, V> Div<Quantity<V>> for &TensorVector<T>
where T: Clone + Div<Quantity<V>> + Tensor, <T as Div<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorVector<<T as Div<Quantity<V>>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U, V> Div<Quantity<V>> for Quantity<U>
where U: UnitDiv<V>,

Source§

type Output = Quantity<<U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, const N: usize, V> Div<Quantity<V>> for TensorList<T, N>
where T: Div<Quantity<V>> + Tensor, <T as Div<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorList<<T as Div<Quantity<V>>>::Output, N>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, U, V> Div<Quantity<V>> for TensorRank1<D, I, U>
where U: UnitDiv<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, J, U, V> Div<Quantity<V>> for TensorRank2<D, I, J, U>
where U: UnitDiv<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, J, K, L, U, V> Div<Quantity<V>> for TensorRank4<D, I, J, K, L, U>
where U: UnitDiv<V>,

Source§

type Output = TensorRank4<D, I, J, K, L, <U as UnitDiv<V>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T1, T2, V> Div<Quantity<V>> for TensorTuple<T1, T2>
where V: UnitHalves, T1: Div<Quantity<<V as UnitHalves>::First>> + Tensor, T2: Div<Quantity<<V as UnitHalves>::Second>> + Tensor, <T1 as Div<Quantity<<V as UnitHalves>::First>>>::Output: Tensor, <T2 as Div<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,

Source§

type Output = TensorTuple<<T1 as Div<Quantity<<V as UnitHalves>::First>>>::Output, <T2 as Div<Quantity<<V as UnitHalves>::Second>>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, V> Div<Quantity<V>> for TensorVector<T>
where T: Div<Quantity<V>> + Tensor, <T as Div<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorVector<<T as Div<Quantity<V>>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, quantity: Quantity<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U> Div<f64> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the / operator.
Source§

fn div(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the / operation. Read more
Source§

impl<U> Div<f64> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the / operator.
Source§

fn div(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the / operation. Read more
Source§

impl<U> DivAssign<&f64> for Quantity<U>

Source§

fn div_assign(&mut self, tensor_rank_0: &TensorRank0)

Performs the /= operation. Read more
Source§

impl<U> DivAssign<f64> for Quantity<U>

Source§

fn div_assign(&mut self, tensor_rank_0: TensorRank0)

Performs the /= operation. Read more
Source§

impl ElasticViscoplastic<Quantity> for Hencky

Source§

fn state_variables_evolution( &self, deformation_gradient: &DeformationGradient, state_variables: &ViscoplasticStateVariables<Y>, ) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>

Calculates and returns the evolution of the state variables.
Source§

impl ElasticViscoplastic<Quantity> for SaintVenantKirchhoff

Source§

fn state_variables_evolution( &self, deformation_gradient: &DeformationGradient, state_variables: &ViscoplasticStateVariables<Y>, ) -> Result<ViscoplasticEvolution<Y>, ConstitutiveError>

Calculates and returns the evolution of the state variables.
Source§

impl<U> Erase for Quantity<U>

Source§

type Erased = f64

The tensor with its configurations and unit discarded.
Source§

fn erase(&self) -> &Self::Erased

Views the tensor with its configurations and unit discarded.
Source§

impl<U> FiniteDifference for Quantity<U>

Source§

fn error_fd( &self, comparator: &Self, epsilon: TensorRank0, ) -> Option<(bool, usize)>

Source§

impl<B, const D: usize> FirstOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>

Source§

impl<B, const D: usize> FirstOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<Quantity<Temperature>>> for Model<B, D>

Source§

impl<U> From<Vector> for Quantity<U>

Source§

fn from(_vector: Vector) -> Self

Converts to this type from the input type.
Source§

impl<U> FromIterator<Quantity<U>> for QuantitySparseVec<U>

Source§

fn from_iter<T>(into_iterator: T) -> Self
where T: IntoIterator<Item = Quantity<U>>,

Creates a value from an iterator. Read more
Source§

impl<const D: usize, I, U> FromIterator<Quantity<U>> for TensorRank1<D, I, U>

Source§

fn from_iter<Ii: IntoIterator<Item = Quantity<U>>>(into_iterator: Ii) -> Self

Creates a value from an iterator. Read more
Source§

impl<U> Hessian for Quantity<U>

Source§

fn quadratic_form(&self, vector: &Vector) -> TensorRank0

The quadratic form of the Hessian with a vector. Read more
Source§

fn entry(&self, _row: usize, _column: usize) -> TensorRank0

The entry at the given (row, column) position.
Source§

fn fill_into(self, _square_matrix: &mut SquareMatrix)

Fills the Hessian into a square matrix.
Source§

fn retain_from(self, _retained: &[bool]) -> SquareMatrix

Return only the retained indices.
Source§

impl HyperelasticViscoplastic<Quantity> for Hencky

Source§

fn helmholtz_free_energy_density( &self, deformation_gradient: &DeformationGradient, deformation_gradient_p: &DeformationGradientPlastic, ) -> Result<Quantity<EnergyDensity>, ConstitutiveError>

a(\mathbf{F},\mathbf{F}_\mathrm{p}) = \mu\,\mathrm{tr}(\mathbf{h}_\mathrm{e}^2) + \frac{1}{2}\left(\kappa - \frac{2}{3}\,\mu\right)\mathrm{tr}(\mathbf{h}_\mathrm{e})^2
Source§

impl HyperelasticViscoplastic<Quantity> for SaintVenantKirchhoff

Source§

fn helmholtz_free_energy_density( &self, deformation_gradient: &DeformationGradient, deformation_gradient_p: &DeformationGradientPlastic, ) -> Result<Quantity<EnergyDensity>, ConstitutiveError>

a(\mathbf{F},\mathbf{F}_\mathrm{p}) = \mu\,\mathrm{tr}(\mathbf{E}_\mathrm{e}^2) + \frac{1}{2}\left(\kappa - \frac{2}{3}\,\mu\right)\mathrm{tr}(\mathbf{E}_\mathrm{e})^2
Source§

impl<U> Jacobian for Quantity<U>

Source§

fn fill_into(&self, _vector: &mut Vector)

Fills the Jacobian into a vector.
Source§

fn fill_into_chained(self, _other: Vector, _vector: &mut Vector)

Fills the Jacobian chained with a vector into another vector.
Source§

fn retain_from(self, _retained: &[bool]) -> Vector

Return only the retained indices.
Source§

fn zero_out(&mut self, _indices: &[usize])

Zero out the specified indices.
Source§

impl<U> Mul<&Quantity<U>> for &Matrix

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, _quantity: &Quantity<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, V> Mul<&Quantity<V>> for &Quantity<U>
where U: UnitMul<V>,

Source§

type Output = Quantity<<U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, U, V> Mul<&Quantity<V>> for &TensorRank1<D, I, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for &TensorRank2<D, I, J, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for &TensorRank4<D, I, J, K, L, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank4<D, I, J, K, L, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<V> Mul<&Quantity<V>> for &TensorRank0

Source§

type Output = Quantity<V>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, V> Mul<&Quantity<V>> for Quantity<U>
where U: UnitMul<V>,

Source§

type Output = Quantity<<U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, U, V> Mul<&Quantity<V>> for TensorRank1<D, I, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, U, V> Mul<&Quantity<V>> for TensorRank2<D, I, J, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, K, L, U, V> Mul<&Quantity<V>> for TensorRank4<D, I, J, K, L, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank4<D, I, J, K, L, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<V> Mul<&Quantity<V>> for TensorRank0

Source§

type Output = Quantity<V>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: &Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> Mul<&f64> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: &TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> Mul<&f64> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: &TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> Mul<Quantity<U>> for TensorRank0

Source§

type Output = Quantity<U>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, V> Mul<Quantity<V>> for &Quantity<U>
where U: UnitMul<V>,

Source§

type Output = Quantity<<U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, const N: usize, V> Mul<Quantity<V>> for &TensorList<T, N>
where T: Clone + Mul<Quantity<V>> + Tensor, <T as Mul<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorList<<T as Mul<Quantity<V>>>::Output, N>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, U, V> Mul<Quantity<V>> for &TensorRank1<D, I, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for &TensorRank2<D, I, J, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for &TensorRank4<D, I, J, K, L, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank4<D, I, J, K, L, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2, V> Mul<Quantity<V>> for &TensorTuple<T1, T2>
where V: UnitHalves, T1: Clone + Mul<Quantity<<V as UnitHalves>::First>> + Tensor, T2: Clone + Mul<Quantity<<V as UnitHalves>::Second>> + Tensor, <T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor, <T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,

Source§

type Output = TensorTuple<<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output, <T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, V> Mul<Quantity<V>> for &TensorVector<T>
where T: Mul<Quantity<V>> + Tensor, <T as Mul<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorVector<<T as Mul<Quantity<V>>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, V> Mul<Quantity<V>> for Quantity<U>
where U: UnitMul<V>,

Source§

type Output = Quantity<<U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, const N: usize, V> Mul<Quantity<V>> for TensorList<T, N>
where T: Mul<Quantity<V>> + Tensor, <T as Mul<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorList<<T as Mul<Quantity<V>>>::Output, N>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, U, V> Mul<Quantity<V>> for TensorRank1<D, I, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank1<D, I, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, U, V> Mul<Quantity<V>> for TensorRank2<D, I, J, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank2<D, I, J, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, I, J, K, L, U, V> Mul<Quantity<V>> for TensorRank4<D, I, J, K, L, U>
where U: UnitMul<V>,

Source§

type Output = TensorRank4<D, I, J, K, L, <U as UnitMul<V>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2, V> Mul<Quantity<V>> for TensorTuple<T1, T2>
where V: UnitHalves, T1: Mul<Quantity<<V as UnitHalves>::First>> + Tensor, T2: Mul<Quantity<<V as UnitHalves>::Second>> + Tensor, <T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output: Tensor, <T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output: Tensor,

Source§

type Output = TensorTuple<<T1 as Mul<Quantity<<V as UnitHalves>::First>>>::Output, <T2 as Mul<Quantity<<V as UnitHalves>::Second>>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, V> Mul<Quantity<V>> for TensorVector<T>
where T: Mul<Quantity<V>> + Tensor, <T as Mul<Quantity<V>>>::Output: Tensor,

Source§

type Output = TensorVector<<T as Mul<Quantity<V>>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<V>) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Quantity> for &Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<Dimensionless>) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Quantity> for &TensorRank0

Scaling a bare scalar by a dimensionless quantity leaves it bare.

Source§

type Output = f64

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<Dimensionless>) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Quantity> for Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, quantity: Quantity<Dimensionless>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> Mul<f64> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> Mul<f64> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the * operation. Read more
Source§

impl<U> MulAssign<&f64> for Quantity<U>

Source§

fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)

Performs the *= operation. Read more
Source§

impl<U> MulAssign<f64> for Quantity<U>

Source§

fn mul_assign(&mut self, tensor_rank_0: TensorRank0)

Performs the *= operation. Read more
Source§

impl<U> Neg for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<U> Neg for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq<Quantity> for TensorRank0

Source§

fn eq(&self, quantity: &Quantity<Dimensionless>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialEq<f64> for Quantity<Dimensionless>

Source§

fn eq(&self, tensor_rank_0: &TensorRank0) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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<U> PartialEq for Quantity<U>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialOrd<Quantity> for TensorRank0

Source§

fn partial_cmp(&self, quantity: &Quantity<Dimensionless>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<f64> for Quantity<Dimensionless>

Source§

fn partial_cmp(&self, tensor_rank_0: &TensorRank0) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<U> PartialOrd for Quantity<U>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<B, const D: usize> SecondOrderMinimize<Quantity<Energy>, TensorVector<TensorRank1<D, Current, Force>>, TensorRank2SparseVec2DSymmetric<D, Current, Current, ForcePerLength>, TensorVector<TensorRank1<D, Current, Length>>> for Model<B, D>

Source§

impl<B, const D: usize> SecondOrderMinimize<Quantity<PowerTemperature>, TensorVector<Quantity<Power>>, TensorVector<QuantitySparseVec<PowerPerTemperature>>, TensorVector<Quantity<Temperature>>> for Model<B, D>

Source§

impl<U> Solution for Quantity<U>

Source§

fn decrement_from(&mut self, _other: &Vector)

Decrements the solution from another vector.
Source§

fn decrement_from_chained(&mut self, _other: &mut Vector, _vector: &Vector)

Decrements the solution chained with a vector from another vector.
Source§

fn decrement_from_retained(&mut self, _retained: &[bool], _other: &Vector)

Decrements the solution from another vector on retained entries.
Source§

impl<U> Sub<&Quantity<U>> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, quantity: &Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub<&Vector> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, _vector: &Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub<Quantity<U>> for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, quantity: Quantity<U>) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Quantity> for TensorRank0

Source§

type Output = Quantity

The resulting type after applying the - operator.
Source§

fn sub(self, quantity: Quantity<Dimensionless>) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub<Vector> for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, _vector: Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for Quantity<Dimensionless>

Source§

type Output = Quantity

The resulting type after applying the - operator.
Source§

fn sub(self, tensor_rank_0: TensorRank0) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub for &Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, quantity: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub for Quantity<U>

Source§

type Output = Quantity<U>

The resulting type after applying the - operator.
Source§

fn sub(self, quantity: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> SubAssign<&Quantity<U>> for Quantity<U>

Source§

fn sub_assign(&mut self, quantity: &Self)

Performs the -= operation. Read more
Source§

impl<U> SubAssign for Quantity<U>

Source§

fn sub_assign(&mut self, quantity: Self)

Performs the -= operation. Read more
Source§

impl<'a, U> Sum<&'a Quantity<U>> for Quantity<U>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = &'a Quantity<U>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<U> Sum for Quantity<U>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<U> Tensor for Quantity<U>

Source§

type Item = Quantity<U>

The type of item encountered when iterating over the tensor.
Source§

type Unit = U

The physical unit the tensor carries.
Source§

fn error_count_zero( &self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>

Returns number of nonzero entries given absolute and relative tolerances.
Source§

fn error_count( &self, other: &Self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>

Returns number of different entries given absolute and relative tolerances.
Source§

fn full_contraction(&self, quantity: &Self) -> TensorRank0

Returns the full contraction with another tensor.
Source§

fn is_zero(&self) -> bool

Checks whether the tensor is the zero tensor.
Source§

fn iter(&self) -> impl Iterator<Item = &Self::Item>

Returns an iterator. Read more
Source§

fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>

Returns an iterator that allows modifying each value. Read more
Source§

fn len(&self) -> usize

Returns the number of elements, also referred to as the ‘length’.
Source§

fn norm_inf(&self) -> Quantity<U>

Returns the infinity norm.
Source§

fn norm_l1(&self) -> Quantity<U>

Returns the L1 (Manhattan) norm.
Source§

fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0

Returns the sum of p-th powers of absolute values (used internally by norm_p).
Source§

fn size(&self) -> usize

Returns the total number of entries.
Source§

fn sub_abs(&self, other: &Self) -> Self

Returns the positive difference of the two tensors.
Source§

fn sub_rel(&self, other: &Self) -> Self

Returns the relative difference of the two tensors.
Source§

fn norm(&self) -> Quantity<Self::Unit>

Returns the tensor norm.
Source§

fn norm_p(&self, p: TensorRank0) -> Quantity<Self::Unit>

Returns the Minkowski (Lp) norm.
Source§

fn norm_squared(&self) -> Quantity<Square<Self::Unit>>
where Self::Unit: UnitMul<Self::Unit>,

Returns the tensor norm squared, which carries the square of its unit.
Source§

fn normalize(&mut self)

Normalizes the tensor in place.
Source§

impl<U> TensorArray for Quantity<U>

Source§

type Array = f64

The type of array corresponding to the tensor.
Source§

type Item = Quantity<U>

The type of item encountered when iterating over the tensor.
Source§

fn as_array(&self) -> Self::Array

Returns the tensor as an array.
Source§

fn identity() -> Self

Returns the identity tensor.
Source§

fn zero() -> Self

Returns the zero tensor.
Source§

impl Viscoplastic<Quantity> for Hencky

Source§

fn initial_state(&self) -> ViscoplasticStateVariables<Quantity>

Returns the initial state of the variables.
Source§

fn plastic_evolution( &self, mandel_stress: MandelStressElastic, state_variables: &ViscoplasticStateVariables<Quantity>, ) -> Result<ViscoplasticEvolution<Quantity>, ConstitutiveError>

Calculates and returns the plastic evolution. Read more
Source§

fn rate_sensitivity(&self) -> Scalar

Returns the rate_sensitivity parameter.
Source§

fn reference_flow_rate(&self) -> Quantity<Rate>

Returns the reference flow rate.
Source§

fn plastic_stretching_rate( &self, deviatoric_mandel_stress: MandelStressElastic, yield_stress: Quantity<Stress>, ) -> Result<StretchingRatePlastic, ConstitutiveError>

Calculates and returns the rate of plastic stretching. Read more
Source§

impl Viscoplastic<Quantity> for SaintVenantKirchhoff

Source§

fn initial_state(&self) -> ViscoplasticStateVariables<Quantity>

Returns the initial state of the variables.
Source§

fn plastic_evolution( &self, mandel_stress: MandelStressElastic, state_variables: &ViscoplasticStateVariables<Quantity>, ) -> Result<ViscoplasticEvolution<Quantity>, ConstitutiveError>

Calculates and returns the plastic evolution. Read more
Source§

fn rate_sensitivity(&self) -> Scalar

Returns the rate_sensitivity parameter.
Source§

fn reference_flow_rate(&self) -> Quantity<Rate>

Returns the reference flow rate.
Source§

fn plastic_stretching_rate( &self, deviatoric_mandel_stress: MandelStressElastic, yield_stress: Quantity<Stress>, ) -> Result<StretchingRatePlastic, ConstitutiveError>

Calculates and returns the rate of plastic stretching. Read more
Source§

impl Viscoplastic<Quantity> for ViscoplasticFlow

Source§

fn initial_state(&self) -> ViscoplasticStateVariables<Quantity>

Returns the initial state of the variables.
Source§

fn plastic_evolution( &self, mandel_stress: MandelStressElastic, state_variables: &ViscoplasticStateVariables<Quantity>, ) -> Result<ViscoplasticEvolution<Quantity>, ConstitutiveError>

Calculates and returns the plastic evolution. Read more
Source§

fn rate_sensitivity(&self) -> Scalar

Returns the rate_sensitivity parameter.
Source§

fn reference_flow_rate(&self) -> Quantity<Rate>

Returns the reference flow rate.
Source§

fn plastic_stretching_rate( &self, deviatoric_mandel_stress: MandelStressElastic, yield_stress: Quantity<Stress>, ) -> Result<StretchingRatePlastic, ConstitutiveError>

Calculates and returns the rate of plastic stretching. Read more
Source§

impl<U> Copy for Quantity<U>

Auto Trait Implementations§

§

impl<U> Freeze for Quantity<U>

§

impl<U> RefUnwindSafe for Quantity<U>
where U: RefUnwindSafe,

§

impl<U> Send for Quantity<U>
where U: Send,

§

impl<U> Sync for Quantity<U>
where U: Sync,

§

impl<U> Unpin for Quantity<U>
where U: Unpin,

§

impl<U> UnsafeUnpin for Quantity<U>

§

impl<U> UnwindSafe for Quantity<U>
where U: 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<'a, T> AssertEq<&'a T> for T
where T: Display + PartialEq + Tensor,

Source§

impl<'a, T> AssertFd<&'a T> for T

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<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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<T> Is<T> for T