Struct gstreamer::Fraction [−][src]
pub struct Fraction(pub Rational32);
Implementations
impl Fraction[src]
impl Fraction[src]Trait Implementations
impl AddAssign<&'_ Fraction> for Fraction[src]
impl AddAssign<&'_ Fraction> for Fraction[src]fn add_assign(&mut self, other: &Fraction)[src]
fn add_assign(&mut self, other: &Fraction)[src]Performs the += operation. Read more
impl AddAssign<&'_ i32> for Fraction[src]
impl AddAssign<&'_ i32> for Fraction[src]fn add_assign(&mut self, other: &i32)[src]
fn add_assign(&mut self, other: &i32)[src]Performs the += operation. Read more
impl AddAssign<Fraction> for Fraction[src]
impl AddAssign<Fraction> for Fraction[src]fn add_assign(&mut self, other: Fraction)[src]
fn add_assign(&mut self, other: Fraction)[src]Performs the += operation. Read more
impl AddAssign<i32> for Fraction[src]
impl AddAssign<i32> for Fraction[src]fn add_assign(&mut self, other: i32)[src]
fn add_assign(&mut self, other: i32)[src]Performs the += operation. Read more
impl AsRef<Ratio<i32>> for Fraction[src]
impl AsRef<Ratio<i32>> for Fraction[src]fn as_ref(&self) -> &Rational32[src]
fn as_ref(&self) -> &Rational32[src]Performs the conversion.
impl Deref for Fraction[src]
impl Deref for Fraction[src]type Target = Rational32
type Target = Rational32The resulting type after dereferencing.
impl DerefMut for Fraction[src]
impl DerefMut for Fraction[src]fn deref_mut(&mut self) -> &mut Rational32[src]
fn deref_mut(&mut self) -> &mut Rational32[src]Mutably dereferences the value.
impl<'de> Deserialize<'de> for Fraction[src]
impl<'de> Deserialize<'de> for Fraction[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]Deserialize this value from the given Serde deserializer. Read more
impl DivAssign<&'_ Fraction> for Fraction[src]
impl DivAssign<&'_ Fraction> for Fraction[src]fn div_assign(&mut self, other: &Fraction)[src]
fn div_assign(&mut self, other: &Fraction)[src]Performs the /= operation. Read more
impl DivAssign<&'_ i32> for Fraction[src]
impl DivAssign<&'_ i32> for Fraction[src]fn div_assign(&mut self, other: &i32)[src]
fn div_assign(&mut self, other: &i32)[src]Performs the /= operation. Read more
impl DivAssign<Fraction> for Fraction[src]
impl DivAssign<Fraction> for Fraction[src]fn div_assign(&mut self, other: Fraction)[src]
fn div_assign(&mut self, other: Fraction)[src]Performs the /= operation. Read more
impl DivAssign<i32> for Fraction[src]
impl DivAssign<i32> for Fraction[src]fn div_assign(&mut self, other: i32)[src]
fn div_assign(&mut self, other: i32)[src]Performs the /= operation. Read more
impl<'a> FromValue<'a> for Fraction[src]
impl<'a> FromValue<'a> for Fraction[src]type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>Value type checker.
unsafe fn from_value(value: &'a Value) -> Self[src]
unsafe fn from_value(value: &'a Value) -> Self[src]Get the contained value from a Value. Read more
impl MulAssign<&'_ Fraction> for Fraction[src]
impl MulAssign<&'_ Fraction> for Fraction[src]fn mul_assign(&mut self, other: &Fraction)[src]
fn mul_assign(&mut self, other: &Fraction)[src]Performs the *= operation. Read more
impl MulAssign<&'_ i32> for Fraction[src]
impl MulAssign<&'_ i32> for Fraction[src]fn mul_assign(&mut self, other: &i32)[src]
fn mul_assign(&mut self, other: &i32)[src]Performs the *= operation. Read more
impl MulAssign<Fraction> for Fraction[src]
impl MulAssign<Fraction> for Fraction[src]fn mul_assign(&mut self, other: Fraction)[src]
fn mul_assign(&mut self, other: Fraction)[src]Performs the *= operation. Read more
impl MulAssign<i32> for Fraction[src]
impl MulAssign<i32> for Fraction[src]fn mul_assign(&mut self, other: i32)[src]
fn mul_assign(&mut self, other: i32)[src]Performs the *= operation. Read more
impl Ord for Fraction[src]
impl Ord for Fraction[src]impl PartialOrd<Fraction> for Fraction[src]
impl PartialOrd<Fraction> for Fraction[src]fn partial_cmp(&self, other: &Fraction) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Fraction) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl RemAssign<&'_ Fraction> for Fraction[src]
impl RemAssign<&'_ Fraction> for Fraction[src]fn rem_assign(&mut self, other: &Fraction)[src]
fn rem_assign(&mut self, other: &Fraction)[src]Performs the %= operation. Read more
impl RemAssign<&'_ i32> for Fraction[src]
impl RemAssign<&'_ i32> for Fraction[src]fn rem_assign(&mut self, other: &i32)[src]
fn rem_assign(&mut self, other: &i32)[src]Performs the %= operation. Read more
impl RemAssign<Fraction> for Fraction[src]
impl RemAssign<Fraction> for Fraction[src]fn rem_assign(&mut self, other: Fraction)[src]
fn rem_assign(&mut self, other: Fraction)[src]Performs the %= operation. Read more
impl RemAssign<i32> for Fraction[src]
impl RemAssign<i32> for Fraction[src]fn rem_assign(&mut self, other: i32)[src]
fn rem_assign(&mut self, other: i32)[src]Performs the %= operation. Read more
impl StaticType for Fraction[src]
impl StaticType for Fraction[src]fn static_type() -> Type[src]
fn static_type() -> Type[src]Returns the type identifier of Self.
impl SubAssign<&'_ Fraction> for Fraction[src]
impl SubAssign<&'_ Fraction> for Fraction[src]fn sub_assign(&mut self, other: &Fraction)[src]
fn sub_assign(&mut self, other: &Fraction)[src]Performs the -= operation. Read more
impl SubAssign<&'_ i32> for Fraction[src]
impl SubAssign<&'_ i32> for Fraction[src]fn sub_assign(&mut self, other: &i32)[src]
fn sub_assign(&mut self, other: &i32)[src]Performs the -= operation. Read more
impl SubAssign<Fraction> for Fraction[src]
impl SubAssign<Fraction> for Fraction[src]fn sub_assign(&mut self, other: Fraction)[src]
fn sub_assign(&mut self, other: Fraction)[src]Performs the -= operation. Read more
impl SubAssign<i32> for Fraction[src]
impl SubAssign<i32> for Fraction[src]fn sub_assign(&mut self, other: i32)[src]
fn sub_assign(&mut self, other: i32)[src]Performs the -= operation. Read more
impl Copy for Fraction[src]
impl Eq for Fraction[src]
impl StructuralEq for Fraction[src]
impl StructuralPartialEq for Fraction[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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized, [src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized, [src]pub fn to_send_value(&self) -> SendValue[src]
pub fn to_send_value(&self) -> SendValue[src]Returns a SendValue clone of self.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
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>,