Trait QuantityArray2

Source
pub trait QuantityArray2<T> {
    // Required methods
    fn from_raw(raw: ArrayView2<'_, f64>, unit: T) -> Self;
    fn to_raw(&self) -> Array2<f64>;
    fn to(&self, unit: T) -> Array2<f64>;
}

Required Methods§

Source

fn from_raw(raw: ArrayView2<'_, f64>, unit: T) -> Self

Source

fn to_raw(&self) -> Array2<f64>

Source

fn to(&self, unit: T) -> Array2<f64>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl QuantityArray2<AccelerationUnit> for Array2<Acceleration>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: AccelerationUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: AccelerationUnit) -> Array2<f64>

Source§

impl QuantityArray2<AngleUnit> for Array2<Angle>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: AngleUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: AngleUnit) -> Array2<f64>

Source§

impl QuantityArray2<AngularAccelerationUnit> for Array2<AngularAcceleration>

Source§

impl QuantityArray2<AngularVelocityUnit> for Array2<AngularVelocity>

Source§

impl QuantityArray2<AreaUnit> for Array2<Area>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: AreaUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: AreaUnit) -> Array2<f64>

Source§

impl QuantityArray2<AreaOfMomentUnit> for Array2<AreaOfMoment>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: AreaOfMomentUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: AreaOfMomentUnit) -> Array2<f64>

Source§

impl QuantityArray2<ChargeUnit> for Array2<Charge>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ChargeUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ChargeUnit) -> Array2<f64>

Source§

impl QuantityArray2<ComplianceUnit> for Array2<Compliance>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ComplianceUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ComplianceUnit) -> Array2<f64>

Source§

impl QuantityArray2<DensityUnit> for Array2<Density>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: DensityUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: DensityUnit) -> Array2<f64>

Source§

impl QuantityArray2<DistanceUnit> for Array2<Distance>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: DistanceUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: DistanceUnit) -> Array2<f64>

Source§

impl QuantityArray2<ForceUnit> for Array2<Force>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ForceUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ForceUnit) -> Array2<f64>

Source§

impl QuantityArray2<ForceAreaUnit> for Array2<ForceArea>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ForceAreaUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ForceAreaUnit) -> Array2<f64>

Source§

impl QuantityArray2<ForceDistanceUnit> for Array2<ForceDistance>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ForceDistanceUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ForceDistanceUnit) -> Array2<f64>

Source§

impl QuantityArray2<ForcePerDistancePowerFourUnit> for Array2<ForcePerDistancePowerFour>

Source§

impl QuantityArray2<ForcePerVolumeUnit> for Array2<ForcePerVolume>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ForcePerVolumeUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ForcePerVolumeUnit) -> Array2<f64>

Source§

impl QuantityArray2<ForceVolumeUnit> for Array2<ForceVolume>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: ForceVolumeUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: ForceVolumeUnit) -> Array2<f64>

Source§

impl QuantityArray2<InverseAreaUnit> for Array2<InverseArea>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: InverseAreaUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: InverseAreaUnit) -> Array2<f64>

Source§

impl QuantityArray2<InverseDistanceUnit> for Array2<InverseDistance>

Source§

impl QuantityArray2<MassUnit> for Array2<Mass>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: MassUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: MassUnit) -> Array2<f64>

Source§

impl QuantityArray2<MassPerDistanceTimeSquareUnit> for Array2<MassPerDistanceTimeSquare>

Source§

impl QuantityArray2<MassPerTimeSquareUnit> for Array2<MassPerTimeSquare>

Source§

impl QuantityArray2<StiffnessUnit> for Array2<Stiffness>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: StiffnessUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: StiffnessUnit) -> Array2<f64>

Source§

impl QuantityArray2<StrainUnit> for Array2<Strain>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: StrainUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: StrainUnit) -> Array2<f64>

Source§

impl QuantityArray2<StressUnit> for Array2<Stress>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: StressUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: StressUnit) -> Array2<f64>

Source§

impl QuantityArray2<StressSquaredUnit> for Array2<StressSquared>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: StressSquaredUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: StressSquaredUnit) -> Array2<f64>

Source§

impl QuantityArray2<TimeUnit> for Array2<Time>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: TimeUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: TimeUnit) -> Array2<f64>

Source§

impl QuantityArray2<VelocityUnit> for Array2<Velocity>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: VelocityUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: VelocityUnit) -> Array2<f64>

Source§

impl QuantityArray2<VelocitySquaredUnit> for Array2<VelocitySquared>

Source§

impl QuantityArray2<VoltageUnit> for Array2<Voltage>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: VoltageUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: VoltageUnit) -> Array2<f64>

Source§

impl QuantityArray2<VolumeUnit> for Array2<Volume>

Source§

fn from_raw(raw: ArrayView2<'_, f64>, unit: VolumeUnit) -> Self

Source§

fn to_raw(&self) -> Array2<f64>

Source§

fn to(&self, unit: VolumeUnit) -> Array2<f64>

Implementors§