[−][src]Struct gstreamer::Fraction
Implementations
impl Fraction
[src]
pub fn new(num: i32, den: i32) -> Fraction
[src]
pub fn approximate_f32(x: f32) -> Option<Fraction>
[src]
pub fn approximate_f64(x: f64) -> Option<Fraction>
[src]
Trait Implementations
impl<'_> Add<&'_ Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Add<&'_ Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &Fraction) -> Fraction
[src]
impl<'_> Add<&'_ Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Add<&'_ Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &Fraction) -> Fraction
[src]
impl<'_> Add<&'_ i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &i32) -> Fraction
[src]
impl<'_, '_> Add<&'_ i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: &i32) -> Fraction
[src]
impl Add<Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: Fraction) -> Fraction
[src]
impl<'_> Add<Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: Fraction) -> Fraction
[src]
impl Add<Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: Fraction) -> Fraction
[src]
impl<'_> Add<Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: Fraction) -> Fraction
[src]
impl Add<i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Fraction
[src]
impl<'_> Add<i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Fraction
[src]
impl<'_> AddAssign<&'_ Fraction> for Fraction
[src]
fn add_assign(&mut self, other: &Fraction)
[src]
impl<'_> AddAssign<&'_ i32> for Fraction
[src]
fn add_assign(&mut self, other: &i32)
[src]
impl AddAssign<Fraction> for Fraction
[src]
fn add_assign(&mut self, other: Fraction)
[src]
impl AddAssign<i32> for Fraction
[src]
fn add_assign(&mut self, other: i32)
[src]
impl AsRef<Ratio<i32>> for Fraction
[src]
fn as_ref(&self) -> &Rational32
[src]
impl Clone for Fraction
[src]
impl Copy for Fraction
[src]
impl Debug for Fraction
[src]
impl Deref for Fraction
[src]
impl DerefMut for Fraction
[src]
fn deref_mut(&mut self) -> &mut Rational32
[src]
impl<'de> Deserialize<'de> for Fraction
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for Fraction
[src]
impl<'_> Div<&'_ Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Div<&'_ Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &Fraction) -> Fraction
[src]
impl<'_> Div<&'_ Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Div<&'_ Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &Fraction) -> Fraction
[src]
impl<'_> Div<&'_ i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &i32) -> Fraction
[src]
impl<'_, '_> Div<&'_ i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: &i32) -> Fraction
[src]
impl Div<Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: Fraction) -> Fraction
[src]
impl<'_> Div<Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: Fraction) -> Fraction
[src]
impl Div<Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: Fraction) -> Fraction
[src]
impl<'_> Div<Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: Fraction) -> Fraction
[src]
impl Div<i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: i32) -> Fraction
[src]
impl<'_> Div<i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the /
operator.
fn div(self, other: i32) -> Fraction
[src]
impl<'_> DivAssign<&'_ Fraction> for Fraction
[src]
fn div_assign(&mut self, other: &Fraction)
[src]
impl<'_> DivAssign<&'_ i32> for Fraction
[src]
fn div_assign(&mut self, other: &i32)
[src]
impl DivAssign<Fraction> for Fraction
[src]
fn div_assign(&mut self, other: Fraction)
[src]
impl DivAssign<i32> for Fraction
[src]
fn div_assign(&mut self, other: i32)
[src]
impl Eq for Fraction
[src]
impl From<(i32, i32)> for Fraction
[src]
impl From<Fraction> for Rational32
[src]
fn from(x: Fraction) -> Rational32
[src]
impl From<Ratio<i32>> for Fraction
[src]
fn from(x: Rational32) -> Fraction
[src]
impl From<i32> for Fraction
[src]
impl<'a> FromValue<'a> for Fraction
[src]
unsafe fn from_value(v: &'a Value) -> Fraction
[src]
impl<'a> FromValueOptional<'a> for Fraction
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Fraction>
[src]
impl Hash for Fraction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<(i32, i32)> for Fraction
[src]
impl<'_> Mul<&'_ Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Mul<&'_ Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &Fraction) -> Fraction
[src]
impl<'_> Mul<&'_ Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Mul<&'_ Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &Fraction) -> Fraction
[src]
impl<'_> Mul<&'_ i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &i32) -> Fraction
[src]
impl<'_, '_> Mul<&'_ i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: &i32) -> Fraction
[src]
impl Mul<Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: Fraction) -> Fraction
[src]
impl<'_> Mul<Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: Fraction) -> Fraction
[src]
impl Mul<Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: Fraction) -> Fraction
[src]
impl<'_> Mul<Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: Fraction) -> Fraction
[src]
impl Mul<i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Fraction
[src]
impl<'_> Mul<i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Fraction
[src]
impl<'_> MulAssign<&'_ Fraction> for Fraction
[src]
fn mul_assign(&mut self, other: &Fraction)
[src]
impl<'_> MulAssign<&'_ i32> for Fraction
[src]
fn mul_assign(&mut self, other: &i32)
[src]
impl MulAssign<Fraction> for Fraction
[src]
fn mul_assign(&mut self, other: Fraction)
[src]
impl MulAssign<i32> for Fraction
[src]
fn mul_assign(&mut self, other: i32)
[src]
impl Neg for Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn neg(self) -> Fraction
[src]
impl<'_> Neg for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn neg(self) -> Fraction
[src]
impl Ord for Fraction
[src]
fn cmp(&self, other: &Fraction) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Fraction> for Fraction
[src]
impl PartialOrd<Fraction> for Fraction
[src]
fn partial_cmp(&self, other: &Fraction) -> Option<Ordering>
[src]
fn lt(&self, other: &Fraction) -> bool
[src]
fn le(&self, other: &Fraction) -> bool
[src]
fn gt(&self, other: &Fraction) -> bool
[src]
fn ge(&self, other: &Fraction) -> bool
[src]
impl<'_> Rem<&'_ Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Rem<&'_ Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &Fraction) -> Fraction
[src]
impl<'_> Rem<&'_ Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Rem<&'_ Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &Fraction) -> Fraction
[src]
impl<'_> Rem<&'_ i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &i32) -> Fraction
[src]
impl<'_, '_> Rem<&'_ i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: &i32) -> Fraction
[src]
impl Rem<Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: Fraction) -> Fraction
[src]
impl<'_> Rem<Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: Fraction) -> Fraction
[src]
impl Rem<Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: Fraction) -> Fraction
[src]
impl<'_> Rem<Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: Fraction) -> Fraction
[src]
impl Rem<i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: i32) -> Fraction
[src]
impl<'_> Rem<i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the %
operator.
fn rem(self, other: i32) -> Fraction
[src]
impl<'_> RemAssign<&'_ Fraction> for Fraction
[src]
fn rem_assign(&mut self, other: &Fraction)
[src]
impl<'_> RemAssign<&'_ i32> for Fraction
[src]
fn rem_assign(&mut self, other: &i32)
[src]
impl RemAssign<Fraction> for Fraction
[src]
fn rem_assign(&mut self, other: Fraction)
[src]
impl RemAssign<i32> for Fraction
[src]
fn rem_assign(&mut self, other: i32)
[src]
impl<'a> Serialize for Fraction
[src]
impl SetValue for Fraction
[src]
impl StaticType for Fraction
[src]
fn static_type() -> Type
[src]
impl StructuralEq for Fraction
[src]
impl StructuralPartialEq for Fraction
[src]
impl<'_> Sub<&'_ Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Sub<&'_ Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &Fraction) -> Fraction
[src]
impl<'_> Sub<&'_ Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &Fraction) -> Fraction
[src]
impl<'_, '_> Sub<&'_ Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &Fraction) -> Fraction
[src]
impl<'_> Sub<&'_ i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &i32) -> Fraction
[src]
impl<'_, '_> Sub<&'_ i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: &i32) -> Fraction
[src]
impl Sub<Fraction> for Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: Fraction) -> Fraction
[src]
impl<'_> Sub<Fraction> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: Fraction) -> Fraction
[src]
impl Sub<Fraction> for i32
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: Fraction) -> Fraction
[src]
impl<'_> Sub<Fraction> for &'_ i32
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: Fraction) -> Fraction
[src]
impl Sub<i32> for Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: i32) -> Fraction
[src]
impl<'_> Sub<i32> for &'_ Fraction
[src]
type Output = Fraction
The resulting type after applying the -
operator.
fn sub(self, other: i32) -> Fraction
[src]
impl<'_> SubAssign<&'_ Fraction> for Fraction
[src]
fn sub_assign(&mut self, other: &Fraction)
[src]
impl<'_> SubAssign<&'_ i32> for Fraction
[src]
fn sub_assign(&mut self, other: &i32)
[src]
impl SubAssign<Fraction> for Fraction
[src]
fn sub_assign(&mut self, other: Fraction)
[src]
impl SubAssign<i32> for Fraction
[src]
fn sub_assign(&mut self, other: i32)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fraction
impl Send for Fraction
impl Sync for Fraction
impl Unpin for Fraction
impl UnwindSafe for Fraction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,