Struct gstreamer::format::ClockTime

source ·
pub struct ClockTime(/* private fields */);

Implementations§

source§

impl ClockTime

source

pub const SECOND: ClockTime = _

source

pub const MSECOND: ClockTime = _

source

pub const USECOND: ClockTime = _

source

pub const NSECOND: ClockTime = _

source

pub const MAX: ClockTime = _

source

pub const fn hours(self) -> u64

source

pub const fn minutes(self) -> u64

source

pub const fn seconds(self) -> u64

source

pub fn seconds_f32(self) -> f32

source

pub fn seconds_f64(self) -> f64

source

pub const fn mseconds(self) -> u64

source

pub const fn useconds(self) -> u64

source

pub const fn nseconds(self) -> u64

source

pub const fn from_seconds(seconds: u64) -> Self

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

§Panics

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

source

pub fn try_from_seconds_f32(seconds: f32) -> Result<Self, TryFromFloatSecsError>

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

Returns an error if seconds is negative, infinite or NaN, or the resulting duration in nanoseconds exceeds the u64 range.

source

pub fn from_seconds_f32(seconds: f32) -> Self

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

§Panics

Panics if seconds is negative, infinite or NaN, or the resulting duration in nanoseconds exceeds the u64 range.

source

pub fn try_from_seconds_f64(seconds: f64) -> Result<Self, TryFromFloatSecsError>

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

Returns an error if seconds is negative, infinite or NaN, or the resulting duration in nanoseconds exceeds the u64 range.

source

pub fn from_seconds_f64(seconds: f64) -> Self

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

§Panics

Panics if seconds is negative, infinite or NaN, or the resulting duration in nanoseconds exceeds the u64 range.

source

pub const fn from_mseconds(mseconds: u64) -> Self

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

§Panics

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

source

pub const fn from_useconds(useconds: u64) -> Self

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

§Panics

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

source

pub const fn from_nseconds(nseconds: u64) -> Self

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).

source§

impl ClockTime

source

pub const ZERO: Self = _

source

pub const NONE: Option<Self> = None

source

pub const ONE: Self = _

The unitary value.

source

pub const MAX_SIGNED: Signed<ClockTime> = _

source

pub const MIN_SIGNED: Signed<ClockTime> = _

source

pub const fn is_zero(self) -> bool

source§

impl ClockTime

source

pub const fn checked_add(self, rhs: Self) -> Option<Self>

source

pub const fn saturating_add(self, rhs: Self) -> Self

source

pub fn overflowing_add(self, rhs: Self) -> (Self, bool)

source

pub fn wrapping_add(self, rhs: Self) -> Self

source

pub const fn checked_sub(self, rhs: Self) -> Option<Self>

source

pub const fn saturating_sub(self, rhs: Self) -> Self

source

pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool)

source

pub const fn wrapping_sub(self, rhs: Self) -> Self

source

pub fn absdiff(self, rhs: Self) -> Self

source§

impl ClockTime

source

pub const fn checked_div(self, rhs: u64) -> Option<Self>

source

pub const fn saturating_div(self, rhs: u64) -> Self

source

pub const fn checked_mul(self, rhs: u64) -> Option<Self>

source

pub const fn saturating_mul(self, rhs: u64) -> Self

source

pub fn overflowing_mul(self, rhs: u64) -> (Self, bool)

source

pub fn wrapping_mul(self, rhs: u64) -> Self

source

pub const fn checked_rem(self, rhs: u64) -> Option<Self>

Methods from Deref<Target = u64>§

1.43.0 · source

pub const MIN: u64 = 0u64

1.43.0 · source

pub const MAX: u64 = 18_446_744_073_709_551_615u64

1.53.0 · source

pub const BITS: u32 = 64u32

Trait Implementations§

source§

impl Add<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting type after applying the + operator.
source§

fn add(self, other: ClockTime) -> Self

Performs the + operation. Read more
source§

impl Add<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting type after applying the + operator.
source§

fn add(self, other: Signed<ClockTime>) -> Signed<ClockTime>

Performs the + operation. Read more
source§

impl Add for ClockTime

§

type Output = ClockTime

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<ClockTime> for Signed<ClockTime>

source§

fn add_assign(&mut self, other: ClockTime)

Performs the += operation. Read more
source§

impl AddAssign for ClockTime

source§

fn add_assign(&mut self, rhs: ClockTime)

Performs the += operation. Read more
source§

impl AsRef<u64> for ClockTime

source§

fn as_ref(&self) -> &u64

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for ClockTime

source§

fn clone(&self) -> ClockTime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ClockTime

source§

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

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

impl Default for ClockTime

source§

fn default() -> ClockTime

Returns the “default value” for a type. Read more
source§

impl Deref for ClockTime

§

type Target = u64

The resulting type after dereferencing.
source§

fn deref(&self) -> &u64

Dereferences the value.
source§

impl<'de> Deserialize<'de> for ClockTime

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for ClockTime

source§

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

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

impl Displayable for ClockTime

source§

impl Div<u64> for ClockTime

§

type Output = ClockTime

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for ClockTime

§

type Output = u64

The resulting type after applying the / operator.
source§

fn div(self, rhs: ClockTime) -> u64

Performs the / operation. Read more
source§

impl DivAssign<u64> for ClockTime

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl FormattedValue for ClockTime

§

type FullRange = Option<ClockTime>

Type which allows building a FormattedValue of this format from any raw value.
source§

fn default_format() -> Format

source§

fn format(&self) -> Format

source§

fn is_some(&self) -> bool

Returns true if this FormattedValue represents a defined value.
source§

unsafe fn into_raw_value(self) -> i64

source§

fn is_none(&self) -> bool

Returns true if this FormattedValue represents an undefined value.
source§

impl From<ClockTime> for Duration

source§

fn from(t: ClockTime) -> Self

Converts to this type from the input type.
source§

impl From<ClockTime> for GenericFormattedValue

source§

fn from(v: ClockTime) -> Self

Converts to this type from the input type.
source§

impl From<ClockTime> for Signed<ClockTime>

source§

fn from(v: ClockTime) -> Signed<ClockTime>

Converts to this type from the input type.
source§

impl From<ClockTime> for Value

source§

fn from(v: ClockTime) -> Value

Converts to this type from the input type.
source§

impl From<ClockTime> for u64

source§

fn from(v: ClockTime) -> u64

Converts to this type from the input type.
source§

impl<'a> FromValue<'a> for ClockTime

§

type Checker = ClockTimeValueTypeOrNoneChecker

Value type checker.
source§

unsafe fn from_value(value: &Value) -> ClockTime

Get the contained value from a Value. Read more
source§

impl HasParamSpec for ClockTime

§

type ParamSpec = ParamSpecUInt64

§

type SetValue = ClockTime

Preferred value to be used as setter for the associated ParamSpec.
§

type BuilderFn = fn(_: &str) -> ParamSpecUInt64Builder<'_>

source§

fn param_spec_builder() -> Self::BuilderFn

source§

impl Hash for ClockTime

source§

fn hash<__H: Hasher>(&self, state: &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 Mul<ClockTime> for u64

§

type Output = ClockTime

The resulting type after applying the * operator.
source§

fn mul(self, rhs: ClockTime) -> ClockTime

Performs the * operation. Read more
source§

impl Mul<u64> for ClockTime

§

type Output = ClockTime

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Self

Performs the * operation. Read more
source§

impl MulAssign<u64> for ClockTime

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl MulDiv<u64> for ClockTime

§

type Output = ClockTime

Output type for the methods of this trait.
source§

fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>

Calculates floor(val * num / denom), i.e. the largest integer less than or equal to the result of the division. Read more
source§

fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>

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
source§

fn mul_div_ceil(self, num: u64, denom: u64) -> Option<Self>

Calculates ceil(val * num / denom), i.e. the the smallest integer greater than or equal to the result of the division. Read more
source§

impl OptionCheckedAdd<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting inner type after applying the addition.
source§

fn opt_checked_add(self, rhs: ClockTime) -> Result<Option<Self>, Error>

Computes the checked addition. Read more
source§

impl OptionCheckedAdd<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting inner type after applying the addition.
source§

fn opt_checked_add( self, rhs: Signed<ClockTime>, ) -> Result<Option<Self::Output>, Error>

Computes the checked addition. Read more
source§

impl OptionCheckedAdd for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the addition.
source§

fn opt_checked_add(self, rhs: Self) -> Result<Option<Self>, Error>

Computes the checked addition. Read more
source§

impl OptionCheckedDiv<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the division.
source§

fn opt_checked_div(self, rhs: u64) -> Result<Option<Self>, Error>

Computes the checked division. Read more
source§

impl OptionCheckedDiv for ClockTime

§

type Output = u64

The resulting inner type after applying the division.
source§

fn opt_checked_div(self, rhs: Self) -> Result<Option<u64>, Error>

Computes the checked division. Read more
source§

impl OptionCheckedMul<ClockTime> for u64

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_checked_mul(self, rhs: ClockTime) -> Result<Option<ClockTime>, Error>

Computes the checked multiplication. Read more
source§

impl OptionCheckedMul<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_checked_mul(self, rhs: u64) -> Result<Option<Self>, Error>

Computes the checked multiplication. Read more
source§

impl OptionCheckedRem<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the remainder.
source§

fn opt_checked_rem(self, rhs: u64) -> Result<Option<Self>, Error>

Computes the checked remainder. Read more
source§

impl OptionCheckedRem for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the remainder.
source§

fn opt_checked_rem(self, rhs: Self) -> Result<Option<Self>, Error>

Computes the checked remainder. Read more
source§

impl OptionCheckedSub<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting inner type after applying the substraction.
source§

fn opt_checked_sub(self, rhs: ClockTime) -> Result<Option<Self>, Error>

Computes the checked substraction. Read more
source§

impl OptionCheckedSub<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting inner type after applying the substraction.
source§

fn opt_checked_sub( self, rhs: Signed<ClockTime>, ) -> Result<Option<Self::Output>, Error>

Computes the checked substraction. Read more
source§

impl OptionCheckedSub for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the substraction.
source§

fn opt_checked_sub(self, rhs: Self) -> Result<Option<Self>, Error>

Computes the checked substraction. Read more
source§

impl OptionOverflowingAdd for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the addition.
source§

fn opt_overflowing_add(self, rhs: Self) -> Option<(Self, bool)>

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
source§

impl OptionOverflowingMul<ClockTime> for u64

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_overflowing_mul(self, rhs: ClockTime) -> Option<(ClockTime, bool)>

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
source§

impl OptionOverflowingMul<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_overflowing_mul(self, rhs: u64) -> Option<(Self, bool)>

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
source§

impl OptionOverflowingSub for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the substraction.
source§

fn opt_overflowing_sub(self, rhs: Self) -> Option<(Self, bool)>

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
source§

impl OptionSaturatingAdd<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting inner type after applying the addition.
source§

fn opt_saturating_add(self, rhs: ClockTime) -> Option<Self>

Computes the addition saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingAdd<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting inner type after applying the addition.
source§

fn opt_saturating_add(self, rhs: Signed<ClockTime>) -> Option<Self::Output>

Computes the addition saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingAdd for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the addition.
source§

fn opt_saturating_add(self, rhs: Self) -> Option<Self>

Computes the addition saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingMul<ClockTime> for u64

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_saturating_mul(self, rhs: ClockTime) -> Option<ClockTime>

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingMul<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_saturating_mul(self, rhs: u64) -> Option<Self>

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingSub<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting inner type after applying the substraction.
source§

fn opt_saturating_sub(self, rhs: ClockTime) -> Option<Self>

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingSub<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting inner type after applying the substraction.
source§

fn opt_saturating_sub(self, rhs: Signed<ClockTime>) -> Option<Self::Output>

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionSaturatingSub for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the substraction.
source§

fn opt_saturating_sub(self, rhs: Self) -> Option<Self>

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
source§

impl OptionWrappingAdd for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the addition.
source§

fn opt_wrapping_add(self, rhs: Self) -> Option<Self>

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
source§

impl OptionWrappingMul<ClockTime> for u64

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_wrapping_mul(self, rhs: ClockTime) -> Option<ClockTime>

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
source§

impl OptionWrappingMul<u64> for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the multiplication.
source§

fn opt_wrapping_mul(self, rhs: u64) -> Option<Self>

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
source§

impl OptionWrappingSub for ClockTime

§

type Output = ClockTime

The resulting inner type after applying the substraction.
source§

fn opt_wrapping_sub(self, rhs: Self) -> Option<Self>

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
source§

impl Ord for ClockTime

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

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

Compares and returns the maximum of two values. Read more
1.21.0 · source§

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

Compares and returns the minimum of two values. Read more
1.50.0 · source§

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

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

impl PartialEq<ClockTime> for Signed<ClockTime>

source§

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

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

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

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

impl PartialEq<Signed<ClockTime>> for ClockTime

source§

fn eq(&self, other: &Signed<ClockTime>) -> bool

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

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

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

impl PartialEq for ClockTime

source§

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

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

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

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

impl PartialOrd<ClockTime> for Signed<ClockTime>

source§

fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · 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 · 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 · 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 · 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 PartialOrd<Signed<ClockTime>> for ClockTime

source§

fn partial_cmp(&self, other: &Signed<ClockTime>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · 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 · 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 · 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 · 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 PartialOrd for ClockTime

source§

fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · 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 · 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 · 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 · 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 Rem<u64> for ClockTime

§

type Output = ClockTime

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Self

Performs the % operation. Read more
source§

impl Rem for ClockTime

§

type Output = ClockTime

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self

Performs the % operation. Read more
source§

impl RemAssign<u64> for ClockTime

source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
source§

impl Serialize for ClockTime

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Sub<ClockTime> for Signed<ClockTime>

§

type Output = Signed<ClockTime>

The resulting type after applying the - operator.
source§

fn sub(self, other: ClockTime) -> Self

Performs the - operation. Read more
source§

impl Sub<Signed<ClockTime>> for ClockTime

§

type Output = Signed<ClockTime>

The resulting type after applying the - operator.
source§

fn sub(self, other: Signed<ClockTime>) -> Signed<ClockTime>

Performs the - operation. Read more
source§

impl Sub for ClockTime

§

type Output = ClockTime

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<ClockTime> for Signed<ClockTime>

source§

fn sub_assign(&mut self, other: ClockTime)

Performs the -= operation. Read more
source§

impl SubAssign for ClockTime

source§

fn sub_assign(&mut self, rhs: ClockTime)

Performs the -= operation. Read more
source§

impl Sum for ClockTime

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl ToValue for ClockTime

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

impl ToValueOptional for ClockTime

source§

fn to_value_optional(opt: Option<&Self>) -> Value

Convert an Option to a Value.
source§

impl TryFrom<Duration> for ClockTime

§

type Error = DurationError

The type returned in the event of a conversion error.
source§

fn try_from(d: Duration) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u64> for ClockTime

§

type Error = GlibNoneError

The type returned in the event of a conversion error.
source§

fn try_from(v: u64) -> Result<Self, GlibNoneError>

Performs the conversion.
source§

impl TryFromGlib<i64> for ClockTime

source§

impl UnsignedIntoSigned for ClockTime

§

type Signed = Signed<ClockTime>

source§

fn into_positive(self) -> Self::Signed

Converts self into a Signed::Positive.
source§

fn into_negative(self) -> Self::Signed

Converts self into a Signed::Negative.
source§

fn into_signed(self, sign: i32) -> Self::Signed

Converts self into a Signed matching the given sign.
source§

impl ValueType for ClockTime

§

type Type = ClockTime

Type to get the Type from. Read more
source§

impl Copy for ClockTime

source§

impl Eq for ClockTime

source§

impl FormattedValueIntrinsic for ClockTime

source§

impl OptionOperations for ClockTime

source§

impl SignedIntrinsic for ClockTime

source§

impl SpecificFormattedValue for ClockTime

source§

impl SpecificFormattedValueIntrinsic for ClockTime

source§

impl StructuralPartialEq for ClockTime

Auto Trait Implementations§

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CompatibleFormattedValue<GenericFormattedValue> for T

§

type Original = T

source§

fn try_into_checked( self, other: GenericFormattedValue, ) -> Result<T, FormattedValueError>

Returns Ok(self) with its type restored if it is compatible with the format of other. Read more
source§

fn try_into_checked_explicit( self, format: Format, ) -> Result<<T as CompatibleFormattedValue<GenericFormattedValue>>::Original, FormattedValueError>

Returns Ok(self) with its type restored if it is compatible with the format of V. 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> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T, InnerRhs> OptionAdd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionAdd<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_add( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionAdd<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition. Read more
§

impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionAdd<InnerRhs>,

§

type Output = <T as OptionAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_add( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionAdd<Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition. Read more
§

impl<T, Rhs> OptionAdd<Rhs> for T
where T: OptionOperations + Add<Rhs>,

§

type Output = <T as Add<Rhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_add(self, rhs: Rhs) -> Option<<T as OptionAdd<Rhs>>::Output>

Computes the addition. Read more
§

impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionAddAssign<InnerRhs>, InnerRhs: Copy,

§

fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)

Performs the addition assignment. Read more
§

impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionAddAssign<InnerRhs>,

§

fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)

Performs the addition assignment. Read more
§

impl<T, Rhs> OptionAddAssign<Rhs> for T
where T: OptionOperations + AddAssign<Rhs>,

§

fn opt_add_assign(&mut self, rhs: Rhs)

Performs the addition assignment. Read more
§

impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedAdd<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionCheckedAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_checked_add( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedAdd<&Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked addition. Read more
§

impl<T, InnerRhs> OptionCheckedAdd<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedAdd<InnerRhs>,

§

type Output = <T as OptionCheckedAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_checked_add( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedAdd<Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked addition. Read more
§

impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedDiv<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionCheckedDiv<InnerRhs>>::Output

The resulting inner type after applying the division.
§

fn opt_checked_div( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedDiv<&Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked division. Read more
§

impl<T, InnerRhs> OptionCheckedDiv<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedDiv<InnerRhs>,

§

type Output = <T as OptionCheckedDiv<InnerRhs>>::Output

The resulting inner type after applying the division.
§

fn opt_checked_div( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedDiv<Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked division. Read more
§

impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedMul<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionCheckedMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_checked_mul( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedMul<&Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked multiplication. Read more
§

impl<T, InnerRhs> OptionCheckedMul<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedMul<InnerRhs>,

§

type Output = <T as OptionCheckedMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_checked_mul( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedMul<Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked multiplication. Read more
§

impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedRem<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionCheckedRem<InnerRhs>>::Output

The resulting inner type after applying the remainder.
§

fn opt_checked_rem( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedRem<&Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked remainder. Read more
§

impl<T, InnerRhs> OptionCheckedRem<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedRem<InnerRhs>,

§

type Output = <T as OptionCheckedRem<InnerRhs>>::Output

The resulting inner type after applying the remainder.
§

fn opt_checked_rem( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedRem<Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked remainder. Read more
§

impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedSub<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionCheckedSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_checked_sub( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedSub<&Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked substraction. Read more
§

impl<T, InnerRhs> OptionCheckedSub<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionCheckedSub<InnerRhs>,

§

type Output = <T as OptionCheckedSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_checked_sub( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedSub<Option<InnerRhs>, InnerRhs>>::Output>, Error>

Computes the checked substraction. Read more
§

impl<T, InnerRhs> OptionDiv<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionDiv<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionDiv<InnerRhs>>::Output

The resulting inner type after applying the division.
§

fn opt_div( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionDiv<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the division. Read more
§

impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionDiv<InnerRhs>,

§

type Output = <T as OptionDiv<InnerRhs>>::Output

The resulting inner type after applying the division.
§

fn opt_div( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionDiv<Option<InnerRhs>, InnerRhs>>::Output>

Computes the division. Read more
§

impl<T, Rhs> OptionDiv<Rhs> for T
where T: OptionOperations + Div<Rhs>,

§

type Output = <T as Div<Rhs>>::Output

The resulting inner type after applying the division.
§

fn opt_div(self, rhs: Rhs) -> Option<<T as OptionDiv<Rhs>>::Output>

Computes the division. Read more
§

impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionDivAssign<InnerRhs>, InnerRhs: Copy,

§

fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)

Performs the division assignment. Read more
§

impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionDivAssign<InnerRhs>,

§

fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)

Performs the division assignment. Read more
§

impl<T, Rhs> OptionDivAssign<Rhs> for T
where T: OptionOperations + DivAssign<Rhs>,

§

fn opt_div_assign(&mut self, rhs: Rhs)

Performs the division assignment. Read more
§

impl<T, InnerRhs> OptionEq<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

fn opt_eq(&self, rhs: &Option<InnerRhs>) -> Option<bool>

Tests whether self is equal to other. Read more
§

fn opt_ne(&self, other: Rhs) -> Option<bool>

Tests whether self is not equal to other. Read more
§

impl<T, Rhs> OptionEq<&Rhs, Rhs> for T
where T: OptionOperations + PartialEq<Rhs>,

§

fn opt_eq(&self, rhs: &Rhs) -> Option<bool>

Tests whether self is equal to other. Read more
§

fn opt_ne(&self, other: Rhs) -> Option<bool>

Tests whether self is not equal to other. Read more
§

impl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

fn opt_eq(&self, rhs: Option<InnerRhs>) -> Option<bool>

Tests whether self is equal to other. Read more
§

fn opt_ne(&self, other: Rhs) -> Option<bool>

Tests whether self is not equal to other. Read more
§

impl<T, Rhs> OptionEq<Rhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,

§

fn opt_eq(&self, rhs: Rhs) -> Option<bool>

Tests whether self is equal to other. Read more
§

fn opt_ne(&self, other: Rhs) -> Option<bool>

Tests whether self is not equal to other. Read more
§

impl<T> OptionMinMax<Option<T>, T> for T
where T: for<'a> OptionOrd<&'a T, T>,

§

fn opt_min(self, other: Option<T>) -> Option<T>

Compares and returns the minimum of two values. Read more
§

fn opt_max(self, other: Option<T>) -> Option<T>

Compares and returns the maximum of two values. Read more
§

impl<T> OptionMinMax<T> for T
where T: for<'a> OptionOrd<&'a T, T>,

§

fn opt_min(self, other: T) -> Option<T>

Compares and returns the minimum of two values. Read more
§

fn opt_max(self, other: T) -> Option<T>

Compares and returns the maximum of two values. Read more
§

impl<T, InnerRhs> OptionMul<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMul<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_mul( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionMul<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication. Read more
§

impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMul<InnerRhs>,

§

type Output = <T as OptionMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_mul( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionMul<Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication. Read more
§

impl<T, Rhs> OptionMul<Rhs> for T
where T: OptionOperations + Mul<Rhs>,

§

type Output = <T as Mul<Rhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_mul(self, rhs: Rhs) -> Option<<T as OptionMul<Rhs>>::Output>

Computes the multiplication. Read more
§

impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMulAssign<InnerRhs>, InnerRhs: Copy,

§

fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)

Performs the multiplication assignment. Read more
§

impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMulAssign<InnerRhs>,

§

fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)

Performs the multiplication assignment. Read more
§

impl<T, Rhs> OptionMulAssign<Rhs> for T
where T: OptionOperations + MulAssign<Rhs>,

§

fn opt_mul_assign(&mut self, rhs: Rhs)

Performs the multiplication assignment. Read more
§

impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,

§

fn opt_cmp(&self, rhs: &Option<InnerRhs>) -> Option<Ordering>

Returns an ordering between self and rhs values if one exists. Read more
§

fn opt_lt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less than rhs. Read more
§

fn opt_le(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less or equal to rhs. Read more
§

fn opt_gt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater than rhs. Read more
§

fn opt_ge(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater or equal to rhs. Read more
§

impl<T, Rhs> OptionOrd<&Rhs, Rhs> for T
where T: OptionOperations + PartialOrd<Rhs>,

§

fn opt_cmp(&self, rhs: &Rhs) -> Option<Ordering>

Returns an ordering between self and rhs values if one exists. Read more
§

fn opt_lt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less than rhs. Read more
§

fn opt_le(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less or equal to rhs. Read more
§

fn opt_gt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater than rhs. Read more
§

fn opt_ge(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater or equal to rhs. Read more
§

impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,

§

fn opt_cmp(&self, rhs: Option<InnerRhs>) -> Option<Ordering>

Returns an ordering between self and rhs values if one exists. Read more
§

fn opt_lt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less than rhs. Read more
§

fn opt_le(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less or equal to rhs. Read more
§

fn opt_gt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater than rhs. Read more
§

fn opt_ge(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater or equal to rhs. Read more
§

impl<T, Rhs> OptionOrd<Rhs> for T
where T: OptionOperations + for<'a> OptionOrd<&'a Rhs, Rhs>,

§

fn opt_cmp(&self, rhs: Rhs) -> Option<Ordering>

Returns an ordering between self and rhs values if one exists. Read more
§

fn opt_lt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less than rhs. Read more
§

fn opt_le(&self, rhs: Rhs) -> Option<bool>

Tests whether self is less or equal to rhs. Read more
§

fn opt_gt(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater than rhs. Read more
§

fn opt_ge(&self, rhs: Rhs) -> Option<bool>

Tests whether self is greater or equal to rhs. Read more
§

impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionOverflowingAdd<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_overflowing_add( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_overflowing_add( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingAdd<Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionOverflowingMul<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionOverflowingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_overflowing_mul( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingMul<&Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionOverflowingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_overflowing_mul( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingMul<Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionOverflowingSub<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionOverflowingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_overflowing_sub( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingSub<&Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionOverflowingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_overflowing_sub( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingSub<Option<InnerRhs>, InnerRhs>>::Output, bool)>

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
§

impl<T, InnerRhs> OptionRem<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionRem<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionRem<InnerRhs>>::Output

The resulting inner type after applying the remainder.
§

fn opt_rem( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionRem<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the remainder. Read more
§

impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionRem<InnerRhs>,

§

type Output = <T as OptionRem<InnerRhs>>::Output

The resulting inner type after applying the remainder.
§

fn opt_rem( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionRem<Option<InnerRhs>, InnerRhs>>::Output>

Computes the remainder. Read more
§

impl<T, Rhs> OptionRem<Rhs> for T
where T: OptionOperations + Rem<Rhs>,

§

type Output = <T as Rem<Rhs>>::Output

The resulting inner type after applying the remainder.
§

fn opt_rem(self, rhs: Rhs) -> Option<<T as OptionRem<Rhs>>::Output>

Computes the remainder. Read more
§

impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionRemAssign<InnerRhs>, InnerRhs: Copy,

§

fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)

Performs the remainder assignment. Read more
§

impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionRemAssign<InnerRhs>,

§

fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)

Performs the remainder assignment. Read more
§

impl<T, Rhs> OptionRemAssign<Rhs> for T
where T: OptionOperations + RemAssign<Rhs>,

§

fn opt_rem_assign(&mut self, rhs: Rhs)

Performs the remainder assignment. Read more
§

impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSaturatingAdd<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_saturating_add( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSaturatingAdd<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_saturating_add( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingAdd<Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSaturatingMul<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionSaturatingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_saturating_mul( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingMul<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSaturatingMul<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionSaturatingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_saturating_mul( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingMul<Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSaturatingSub<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionSaturatingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_saturating_sub( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingSub<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSaturatingSub<Option<InnerRhs>, InnerRhs> for T

§

type Output = <T as OptionSaturatingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_saturating_sub( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingSub<Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionSub<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSub<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_sub( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSub<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction. Read more
§

impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSub<InnerRhs>,

§

type Output = <T as OptionSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_sub( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSub<Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction. Read more
§

impl<T, Rhs> OptionSub<Rhs> for T
where T: OptionOperations + Sub<Rhs>,

§

type Output = <T as Sub<Rhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_sub(self, rhs: Rhs) -> Option<<T as OptionSub<Rhs>>::Output>

Computes the substraction. Read more
§

impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSubAssign<InnerRhs>, InnerRhs: Copy,

§

fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)

Performs the substraction assignment. Read more
§

impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionSubAssign<InnerRhs>,

§

fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)

Performs the substraction assignment. Read more
§

impl<T, Rhs> OptionSubAssign<Rhs> for T
where T: OptionOperations + SubAssign<Rhs>,

§

fn opt_sub_assign(&mut self, rhs: Rhs)

Performs the substraction assignment. Read more
§

impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingAdd<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionWrappingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_wrapping_add( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingAdd<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionWrappingAdd<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingAdd<InnerRhs>,

§

type Output = <T as OptionWrappingAdd<InnerRhs>>::Output

The resulting inner type after applying the addition.
§

fn opt_wrapping_add( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingAdd<Option<InnerRhs>, InnerRhs>>::Output>

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingMul<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionWrappingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_wrapping_mul( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingMul<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionWrappingMul<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingMul<InnerRhs>,

§

type Output = <T as OptionWrappingMul<InnerRhs>>::Output

The resulting inner type after applying the multiplication.
§

fn opt_wrapping_mul( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingMul<Option<InnerRhs>, InnerRhs>>::Output>

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingSub<InnerRhs>, InnerRhs: Copy,

§

type Output = <T as OptionWrappingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_wrapping_sub( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingSub<&Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
§

impl<T, InnerRhs> OptionWrappingSub<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionWrappingSub<InnerRhs>,

§

type Output = <T as OptionWrappingSub<InnerRhs>>::Output

The resulting inner type after applying the substraction.
§

fn opt_wrapping_sub( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingSub<Option<InnerRhs>, InnerRhs>>::Output>

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more
source§

impl<T> Property for T
where T: HasParamSpec,

§

type Value = T

source§

impl<T> PropertyGet for T
where T: HasParamSpec,

§

type Value = T

source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,