QuantityArray1

Trait QuantityArray1 

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

Required Methods§

Source

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

Source

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

Source

fn to(&self, unit: T) -> Array1<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 QuantityArray1<AccelerationUnit> for Array1<Acceleration>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<AngleUnit> for Array1<Angle>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<AngularAccelerationUnit> for Array1<AngularAcceleration>

Source§

impl QuantityArray1<AngularVelocityUnit> for Array1<AngularVelocity>

Source§

impl QuantityArray1<AreaUnit> for Array1<Area>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<AreaOfMomentUnit> for Array1<AreaOfMoment>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ChargeUnit> for Array1<Charge>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ComplianceUnit> for Array1<Compliance>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<DensityUnit> for Array1<Density>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<DistanceUnit> for Array1<Distance>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ForceUnit> for Array1<Force>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ForceAreaUnit> for Array1<ForceArea>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ForceDistanceUnit> for Array1<ForceDistance>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ForcePerDistancePowerFourUnit> for Array1<ForcePerDistancePowerFour>

Source§

impl QuantityArray1<ForcePerVolumeUnit> for Array1<ForcePerVolume>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<ForceVolumeUnit> for Array1<ForceVolume>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<InverseAreaUnit> for Array1<InverseArea>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<InverseDistanceUnit> for Array1<InverseDistance>

Source§

impl QuantityArray1<MassUnit> for Array1<Mass>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<MassPerDistanceUnit> for Array1<MassPerDistance>

Source§

impl QuantityArray1<RotationalStiffnessUnit> for Array1<RotationalStiffness>

Source§

impl QuantityArray1<StiffnessUnit> for Array1<Stiffness>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<StrainUnit> for Array1<Strain>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<StressUnit> for Array1<Stress>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<StressSquaredUnit> for Array1<StressSquared>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<TimeUnit> for Array1<Time>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<VelocityUnit> for Array1<Velocity>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<VelocitySquaredUnit> for Array1<VelocitySquared>

Source§

impl QuantityArray1<VoltageUnit> for Array1<Voltage>

Source§

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

Source§

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

Source§

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

Source§

impl QuantityArray1<VolumeUnit> for Array1<Volume>

Source§

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

Source§

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

Source§

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

Implementors§