Struct gstreamer::format::ClockTime

source ·
pub struct ClockTime(_);

Implementations

Builds a new ClockTime which value is the given number of seconds.

Panics

Panics if the resulting duration in nanoseconds exceeds the u64 range.

Builds a new ClockTime which value is the given number of milliseconds.

Panics

Panics if the resulting duration in nanoseconds exceeds the u64 range.

Builds a new ClockTime which value is the given number of microseconds.

Panics

Panics if the resulting duration in nanoseconds exceeds the u64 range.

Builds a new ClockTime which value is the given number of nanoseconds.

Panics

Panics if the requested duration equals GST_CLOCK_TIME_NONE (u64::MAX).

The unitary value.

Methods from Deref<Target = u64>

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Performs the += operation. Read more
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Dereferences the value.
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
Performs the /= operation. Read more
Type which allows building a FormattedValue of this format from any raw value.
Returns true if this FormattedValue represents a defined value.
Returns true if this FormattedValue represents an undefined value.
Converts to this type from the input type.
Converts to this type from the input type.
Value type checker.
Get the contained value from a Value. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
Output type for the methods of this trait.
Calculates floor(val * num / denom), i.e. the largest integer less than or equal to the result of the division. Read more
Calculates round(val * num / denom), i.e. the closest integer to the result of the division. If both surrounding integers are the same distance (x.5), the one with the bigger absolute value is returned (round away from 0.0). Read more
Calculates ceil(val * num / denom), i.e. the the smallest integer greater than or equal to the result of the division. Read more
The resulting inner type after applying the addition.
Computes the checked addition. Read more
The resulting inner type after applying the addition.
Computes the checked addition. Read more
The resulting inner type after applying the addition.
Computes the checked addition. Read more
The resulting inner type after applying the division.
Computes the checked division. Read more
The resulting inner type after applying the division.
Computes the checked division. Read more
The resulting inner type after applying the multiplication.
Computes the checked multiplication. Read more
The resulting inner type after applying the multiplication.
Computes the checked multiplication. Read more
The resulting inner type after applying the remainder.
Computes the checked remainder. Read more
The resulting inner type after applying the remainder.
Computes the checked remainder. Read more
The resulting inner type after applying the substraction.
Computes the checked substraction. Read more
The resulting inner type after applying the substraction.
Computes the checked substraction. Read more
The resulting inner type after applying the substraction.
Computes the checked substraction. Read more
The resulting inner type after applying the addition.
Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the multiplication.
Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the multiplication.
Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the substraction.
Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the addition.
Computes the addition saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the addition.
Computes the addition saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the addition.
Computes the addition saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the addition.
Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
Performs the %= operation. Read more
Serialize this value into the given Serde serializer. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
Performs the -= operation. Read more
Performs the -= operation. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more
Convert a value to a Value.
Returns the type identifer of self. Read more
Convert an Option to a Value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Converts self into a Signed::Positive.
Converts self into a Signed::Negative.
Converts self into a Signed matching the given sign.
Type to get the Type from. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting inner type after applying the addition.
Computes the addition. Read more
The resulting inner type after applying the addition.
Computes the addition. Read more
The resulting inner type after applying the addition.
Computes the addition. Read more
Performs the addition assignment. Read more
Performs the addition assignment. Read more
Performs the addition assignment. Read more
The resulting inner type after applying the addition.
Computes the checked addition. Read more
The resulting inner type after applying the addition.
Computes the checked addition. Read more
The resulting inner type after applying the division.
Computes the checked division. Read more
The resulting inner type after applying the division.
Computes the checked division. Read more
The resulting inner type after applying the multiplication.
Computes the checked multiplication. Read more
The resulting inner type after applying the multiplication.
Computes the checked multiplication. Read more
The resulting inner type after applying the remainder.
Computes the checked remainder. Read more
The resulting inner type after applying the remainder.
Computes the checked remainder. Read more
The resulting inner type after applying the substraction.
Computes the checked substraction. Read more
The resulting inner type after applying the substraction.
Computes the checked substraction. Read more
The resulting inner type after applying the division.
Computes the division. Read more
The resulting inner type after applying the division.
Computes the division. Read more
The resulting inner type after applying the division.
Computes the division. Read more
Performs the division assignment. Read more
Performs the division assignment. Read more
Performs the division assignment. Read more
Tests whether self is equal to other. Read more
Tests whether self is not equal to other. Read more
Tests whether self is equal to other. Read more
Tests whether self is not equal to other. Read more
Tests whether self is equal to other. Read more
Tests whether self is not equal to other. Read more
Tests whether self is equal to other. Read more
Tests whether self is not equal to other. Read more
Compares and returns the minimum of two values. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Compares and returns the maximum of two values. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication. Read more
Performs the multiplication assignment. Read more
Performs the multiplication assignment. Read more
Performs the multiplication assignment. Read more
Returns an ordering between self and rhs values if one exists. Read more
Tests whether self is less than rhs. Read more
Tests whether self is less or equal to rhs. Read more
Tests whether self is greater than rhs. Read more
Tests whether self is greater or equal to rhs. Read more
Returns an ordering between self and rhs values if one exists. Read more
Tests whether self is less than rhs. Read more
Tests whether self is less or equal to rhs. Read more
Tests whether self is greater than rhs. Read more
Tests whether self is greater or equal to rhs. Read more
Returns an ordering between self and rhs values if one exists. Read more
Tests whether self is less than rhs. Read more
Tests whether self is less or equal to rhs. Read more
Tests whether self is greater than rhs. Read more
Tests whether self is greater or equal to rhs. Read more
Returns an ordering between self and rhs values if one exists. Read more
Tests whether self is less than rhs. Read more
Tests whether self is less or equal to rhs. Read more
Tests whether self is greater than rhs. Read more
Tests whether self is greater or equal to rhs. Read more
The resulting inner type after applying the addition.
Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the addition.
Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the multiplication.
Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the multiplication.
Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the substraction.
Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the substraction.
Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more
The resulting inner type after applying the remainder.
Computes the remainder. Read more
The resulting inner type after applying the remainder.
Computes the remainder. Read more
The resulting inner type after applying the remainder.
Computes the remainder. Read more
Performs the remainder assignment. Read more
Performs the remainder assignment. Read more
Performs the remainder assignment. Read more
The resulting inner type after applying the addition.
Computes the addition saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the addition.
Computes the addition saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction. Read more
The resulting inner type after applying the substraction.
Computes the substraction. Read more
The resulting inner type after applying the substraction.
Computes the substraction. Read more
Performs the substraction assignment. Read more
Performs the substraction assignment. Read more
Performs the substraction assignment. Read more
The resulting inner type after applying the addition.
Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the addition.
Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the multiplication.
Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
The resulting inner type after applying the substraction.
Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
Ensures that the type has been registered with the type system.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Returns a SendValue clone of self.
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.