Skip to main content

Capacitance

Struct Capacitance 

Source
pub struct Capacitance<T: NumLike> {
    pub F: T,
}
Expand description

The electrical capacitance unit type, defined as farads in SI units

Fields§

§F: T

The value of this Electrical capacitance in farads

Implementations§

Source§

impl<T> Capacitance<T>
where T: NumLike,

Source

pub fn unit_name() -> &'static str

Returns the standard unit name of electrical capacitance: “farads”

Source

pub fn unit_symbol() -> &'static str

Returns the abbreviated name or symbol of electrical capacitance: “F” for farads

Source

pub fn from_F(F: T) -> Self

Returns a new electrical capacitance value from the given number of farads

§Arguments
  • F - Any number-like type, representing a quantity of farads
Source

pub fn to_F(&self) -> T

Returns a copy of this electrical capacitance value in farads

Source

pub fn from_farads(farads: T) -> Self

Returns a new electrical capacitance value from the given number of farads

§Arguments
  • farads - Any number-like type, representing a quantity of farads
Source

pub fn to_farads(&self) -> T

Returns a copy of this electrical capacitance value in farads

Source§

impl<T> Capacitance<T>
where T: NumLike + From<f64>,

Source

pub fn to_mF(&self) -> T

Returns a copy of this electrical capacitance value in millifarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_mF(mF: T) -> Self

Returns a new electrical capacitance value from the given number of millifarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • mF - Any number-like type, representing a quantity of millifarads
Source

pub fn to_uF(&self) -> T

Returns a copy of this electrical capacitance value in microfarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_uF(uF: T) -> Self

Returns a new electrical capacitance value from the given number of microfarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • uF - Any number-like type, representing a quantity of microfarads
Source

pub fn to_nF(&self) -> T

Returns a copy of this electrical capacitance value in nanofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_nF(nF: T) -> Self

Returns a new electrical capacitance value from the given number of nanofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • nF - Any number-like type, representing a quantity of nanofarads
Source

pub fn to_pF(&self) -> T

Returns a copy of this electrical capacitance value in picofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_pF(pF: T) -> Self

Returns a new electrical capacitance value from the given number of picofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • pF - Any number-like type, representing a quantity of picofarads
Source

pub fn to_kF(&self) -> T

Returns a copy of this electrical capacitance value in kilofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_kF(kF: T) -> Self

Returns a new electrical capacitance value from the given number of kilofarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • kF - Any number-like type, representing a quantity of kilofarads
Source

pub fn to_MF(&self) -> T

Returns a copy of this electrical capacitance value in megafarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_MF(MF: T) -> Self

Returns a new electrical capacitance value from the given number of megafarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • MF - Any number-like type, representing a quantity of megafarads
Source

pub fn to_GF(&self) -> T

Returns a copy of this electrical capacitance value in gigafarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_GF(GF: T) -> Self

Returns a new electrical capacitance value from the given number of gigafarads

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • GF - Any number-like type, representing a quantity of gigafarads

Trait Implementations§

Source§

impl<T: NumLike> Add for &Capacitance<T>

Adding two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<T: NumLike> Add for Capacitance<T>

Adding two unit values of the same type returns a new unit value of the same type

Source§

type Output = Capacitance<T>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<T: NumLike> AddAssign for Capacitance<T>

Adds the given unit value to this unit value

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<T: Clone + NumLike> Clone for Capacitance<T>

Source§

fn clone(&self) -> Capacitance<T>

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<T: Debug + NumLike> Debug for Capacitance<T>

Source§

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

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

impl<T> Display for Capacitance<T>
where T: NumLike,

Source§

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

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

impl<T> Div<&Capacitance<T>> for &Charge<T>
where T: NumLike,

Dividing a Charge by a Capacitance returns a value of type Voltage

Source§

type Output = Voltage<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &Conductance<T>
where T: NumLike,

Dividing a Conductance by a Capacitance returns a value of type Frequency

Source§

type Output = Frequency<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &InverseVoltage<T>
where T: NumLike,

Dividing a InverseVoltage by a Capacitance returns a value of type InverseCharge

Source§

type Output = InverseCharge<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &Time<T>
where T: NumLike,

Dividing a Time by a Capacitance returns a value of type Resistance

Source§

type Output = Resistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for &i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for Charge<T>
where T: NumLike,

Dividing a Charge by a Capacitance returns a value of type Voltage

Source§

type Output = Voltage<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for Conductance<T>
where T: NumLike,

Dividing a Conductance by a Capacitance returns a value of type Frequency

Source§

type Output = Frequency<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for InverseVoltage<T>
where T: NumLike,

Dividing a InverseVoltage by a Capacitance returns a value of type InverseCharge

Source§

type Output = InverseCharge<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for Time<T>
where T: NumLike,

Dividing a Time by a Capacitance returns a value of type Resistance

Source§

type Output = Resistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Capacitance<T>> for i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Capacitance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Charge<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Charge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Charge<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Charge<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Charge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Charge<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Conductance<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Conductance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Conductance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Conductance<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Conductance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Conductance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseVoltage<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a InverseVoltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseVoltage<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseVoltage<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a InverseVoltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseVoltage<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&T> for &Capacitance<T>
where T: NumLike,

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<&T> for Capacitance<T>
where T: NumLike,

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<&Time<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Time returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Time<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Time<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Time returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Time<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &Charge<T>
where T: NumLike,

Dividing a Charge by a Capacitance returns a value of type Voltage

Source§

type Output = Voltage<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &Conductance<T>
where T: NumLike,

Dividing a Conductance by a Capacitance returns a value of type Frequency

Source§

type Output = Frequency<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &InverseVoltage<T>
where T: NumLike,

Dividing a InverseVoltage by a Capacitance returns a value of type InverseCharge

Source§

type Output = InverseCharge<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &Time<T>
where T: NumLike,

Dividing a Time by a Capacitance returns a value of type Resistance

Source§

type Output = Resistance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for &i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for Charge<T>
where T: NumLike,

Dividing a Charge by a Capacitance returns a value of type Voltage

Source§

type Output = Voltage<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for Conductance<T>
where T: NumLike,

Dividing a Conductance by a Capacitance returns a value of type Frequency

Source§

type Output = Frequency<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for InverseVoltage<T>
where T: NumLike,

Dividing a InverseVoltage by a Capacitance returns a value of type InverseCharge

Source§

type Output = InverseCharge<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for Time<T>
where T: NumLike,

Dividing a Time by a Capacitance returns a value of type Resistance

Source§

type Output = Resistance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Capacitance<T>> for i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Capacitance unit value returns a value of type Elastance

Source§

type Output = Elastance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Charge<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Charge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Charge<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Charge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Conductance<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Conductance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Conductance<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Conductance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<InverseVoltage<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a InverseVoltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<InverseVoltage<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a InverseVoltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T: NumLike> Div<T> for &Capacitance<T>

Dividing a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T: NumLike> Div<T> for Capacitance<T>

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Time<T>> for &Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Time returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> Div<Time<T>> for Capacitance<T>
where T: NumLike,

Dividing a Capacitance by a Time returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T: NumLike> Div for &Capacitance<T>

Dividing a unit value by another of the same type returns a scalar value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = T

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T: NumLike> Div for Capacitance<T>

Dividing a unit value by another of the same type returns a scalar value

Source§

type Output = T

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T: NumLike> DivAssign<T> for Capacitance<T>

Divides this unit value by a scalar

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<T> Hash for Capacitance<T>
where T: NumLike + Hash,

This struct implements the Hash trait if it’s member data type also has the Hash trait

Source§

fn hash<H: Hasher>(&self, hasher: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T> Mul<&Capacitance<T>> for &Frequency<T>
where T: NumLike,

Multiplying a Frequency by a Capacitance returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for &InverseCharge<T>
where T: NumLike,

Multiplying a InverseCharge by a Capacitance returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for &Resistance<T>
where T: NumLike,

Multiplying a Resistance by a Capacitance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for &Voltage<T>
where T: NumLike,

Multiplying a Voltage by a Capacitance returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for Frequency<T>
where T: NumLike,

Multiplying a Frequency by a Capacitance returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for InverseCharge<T>
where T: NumLike,

Multiplying a InverseCharge by a Capacitance returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for Resistance<T>
where T: NumLike,

Multiplying a Resistance by a Capacitance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for Voltage<T>
where T: NumLike,

Multiplying a Voltage by a Capacitance returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for f32
where T: NumLike + From<f32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for f64
where T: NumLike + From<f64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for i16
where T: NumLike + From<i16>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for i32
where T: NumLike + From<i32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for i64
where T: NumLike + From<i64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for i8
where T: NumLike + From<i8>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for u16
where T: NumLike + From<u16>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for u32
where T: NumLike + From<u32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for u64
where T: NumLike + From<u64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Capacitance<T>> for u8
where T: NumLike + From<u8>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Capacitance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Frequency<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Frequency returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Frequency<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Frequency<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Frequency returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Frequency<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseCharge<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a InverseCharge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseCharge<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseCharge<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a InverseCharge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseCharge<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Resistance<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Resistance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Resistance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Resistance<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Resistance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Resistance<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&T> for &Capacitance<T>
where T: NumLike,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<&T> for Capacitance<T>
where T: NumLike,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<&Voltage<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Voltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Voltage<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Voltage<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Voltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Voltage<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for &Frequency<T>
where T: NumLike,

Multiplying a Frequency by a Capacitance returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for &InverseCharge<T>
where T: NumLike,

Multiplying a InverseCharge by a Capacitance returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for &Resistance<T>
where T: NumLike,

Multiplying a Resistance by a Capacitance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for &Voltage<T>
where T: NumLike,

Multiplying a Voltage by a Capacitance returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for Frequency<T>
where T: NumLike,

Multiplying a Frequency by a Capacitance returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for InverseCharge<T>
where T: NumLike,

Multiplying a InverseCharge by a Capacitance returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for Resistance<T>
where T: NumLike,

Multiplying a Resistance by a Capacitance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for Voltage<T>
where T: NumLike,

Multiplying a Voltage by a Capacitance returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for f32
where T: NumLike + From<f32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for f64
where T: NumLike + From<f64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for i16
where T: NumLike + From<i16>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for i32
where T: NumLike + From<i32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for i64
where T: NumLike + From<i64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for i8
where T: NumLike + From<i8>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for u16
where T: NumLike + From<u16>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for u32
where T: NumLike + From<u32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for u64
where T: NumLike + From<u64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Capacitance<T>> for u8
where T: NumLike + From<u8>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Frequency<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Frequency returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Frequency<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Frequency returns a value of type Conductance

Source§

type Output = Conductance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<InverseCharge<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a InverseCharge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<InverseCharge<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a InverseCharge returns a value of type InverseVoltage

Source§

type Output = InverseVoltage<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Resistance<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Resistance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Resistance<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Resistance returns a value of type Time

Source§

type Output = Time<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T: NumLike> Mul<T> for &Capacitance<T>

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T: NumLike> Mul<T> for Capacitance<T>

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Voltage<T>> for &Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Voltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> Mul<Voltage<T>> for Capacitance<T>
where T: NumLike,

Multiplying a Capacitance by a Voltage returns a value of type Charge

Source§

type Output = Charge<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T: NumLike> MulAssign<T> for Capacitance<T>

Multiplies this unit value by a scalar

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<T: NumLike> Neg for &Capacitance<T>

Flips the sign of this unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: NumLike> Neg for Capacitance<T>

Flips the sign of this unit value

Source§

type Output = Capacitance<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Ord for Capacitance<T>
where T: NumLike + Ord,

This struct implements the Ord trait if it’s member data type also has the Ord trait

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> PartialEq for Capacitance<T>
where T: NumLike + PartialEq,

This struct implements the PartialEq trait if it’s member data type also has the PartialEq trait

Source§

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

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

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

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

impl<T> PartialOrd for Capacitance<T>
where T: NumLike + PartialOrd,

This struct implements the PartialOrd trait if it’s member data type also has the PartialOrd trait

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<T: NumLike> Sub for &Capacitance<T>

Subtracting two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Capacitance<T>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<T: NumLike> Sub for Capacitance<T>

Subtracting two unit values of the same type returns a new unit value of the same type

Source§

type Output = Capacitance<T>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<T: NumLike> SubAssign for Capacitance<T>

Subtracts the given unit value from this unit value

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<T> Copy for Capacitance<T>
where T: NumLike + Copy,

This struct implements the Copy marker trait if it’s member data type also has the Copy trait

Source§

impl<T> Eq for Capacitance<T>
where T: NumLike + PartialEq + Eq,

This struct implements the core::cmp::Eq trait if it’s member data type also has the core::cmp::Eq trait

Auto Trait Implementations§

§

impl<T> Freeze for Capacitance<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Capacitance<T>
where T: RefUnwindSafe,

§

impl<T> Send for Capacitance<T>
where T: Send,

§

impl<T> Sync for Capacitance<T>
where T: Sync,

§

impl<T> Unpin for Capacitance<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Capacitance<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Capacitance<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<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.