Struct gstreamer::TypedValue[][src]

#[repr(C)]
pub struct TypedValue<T>(_, _);

A statically typed Value.

It dereferences to Value and can be used everywhere Value references are accepted.

See the module documentation for more details.

Methods

impl<'a, T> TypedValue<T> where
    T: FromValueOptional<'a> + SetValue
[src]

Returns the value.

Types that don't support a None value always return Some. See get_some.

Returns the value.

This method is only available for types that don't support a None value.

Sets the value.

This method is only available for types that support a None value.

Sets the value to None.

This method is only available for types that support a None value.

Sets the value.

impl<'a, T> TypedValue<T> where
    T: FromValueOptional<'a> + SetValue + Send
[src]

Methods from Deref<Target = Value>

Tries to downcast to a &TypedValue.

Returns Some(&TypedValue<T>) if the value carries a type corresponding to T and None otherwise.

Tries to get a value of type T.

Returns Some if the type is correct and the value is not None.

This function doesn't distinguish between type mismatches and correctly typed None values. Use downcast or is for that.

Returns true if the type of the value corresponds to T or is a sub-type of T.

Returns the type of the value.

Trait Implementations

impl<'a> From<&'a str> for TypedValue<String>
[src]

Performs the conversion.

impl<'a> From<TypedValue<&'a str>> for TypedValue<String>
[src]

Performs the conversion.

impl<T> From<TypedValue<T>> for Value
[src]

Performs the conversion.

impl<'a> From<TypedValue<String>> for TypedValue<&'a str>
[src]

Performs the conversion.

impl<T> From<TypedValue<T>> for SendValue where
    T: Send
[src]

Performs the conversion.

impl<'a, T> From<Option<&'a T>> for TypedValue<T> where
    T: FromValueOptional<'a> + SetValueOptional
[src]

Performs the conversion.

impl<'a, T> From<&'a T> for TypedValue<T> where
    T: FromValueOptional<'a> + SetValue
[src]

Performs the conversion.

impl<'a> From<Option<&'a str>> for TypedValue<String>
[src]

Performs the conversion.

impl<T> Clone for TypedValue<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T> ToGlibPtrMut<'a, *mut GValue> for TypedValue<T> where
    T: 'a, 
[src]

Transfer: none. Read more

impl<T> Deref for TypedValue<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T> Debug for TypedValue<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> !Send for TypedValue<T>

impl<T> !Sync for TypedValue<T>