Struct gstreamer::Fraction [−][src]
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<&'_ 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<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<&'_ 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<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]
pub 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<&'_ 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<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]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Fraction> for Fraction
[src]
impl PartialOrd<Fraction> for Fraction
[src]
fn partial_cmp(&self, other: &Fraction) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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<&'_ 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<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<&'_ 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<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
[src]
impl Send for Fraction
[src]
impl Sync for Fraction
[src]
impl Unpin for Fraction
[src]
impl UnwindSafe for Fraction
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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,
pub 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.
pub 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>,