Struct gstreamer::Value [] [src]

#[repr(C)]
pub struct Value(_, _);

A generic value capable of carrying various types.

Once created the type of the value can't be changed.

Some types (e.g. String and objects) support None values while others (e.g. numeric types) don't.

Value does not implement the Send trait, but SendValue can be used instead.

See the module documentation for more details.

Methods

impl Value
[src]

[src]

Creates a new Value that is initialized with type_

[src]

Tries to downcast to a TypedValue.

Returns Ok(TypedValue<T>) if the value carries a type corresponding to T and Err(self) otherwise.

[src]

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.

[src]

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

[src]

Returns the type of the value.

[src]

Returns whether Values of type src can be transformed to type dst.

[src]

Trait Implementations

impl FromGlibPtrNone<*mut GValue> for Value
[src]

[src]

impl FromGlibPtrNone<*const GValue> for Value
[src]

[src]

impl ToValue for Value
[src]

[src]

Returns a Value clone of self.

[src]

Returns the type identifer of self. Read more

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> ToGlibPtrMut<'a, *mut GValue> for Value
[src]

[src]

Transfer: none. Read more

impl FromGlibPtrFull<*mut GValue> for Value
[src]

[src]

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *mut *mut GValue> for Value
[src]

[src]

[src]

[src]

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *const *mut GValue> for Value
[src]

[src]

[src]

[src]

impl<'a> ToGlibPtr<'a, *const GValue> for Value
[src]

[src]

Transfer: none. Read more

[src]

Transfer: container. Read more

[src]

Transfer: full. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, T> From<Option<&'a T>> for Value where
    T: SetValueOptional + ?Sized
[src]

[src]

Performs the conversion.

impl From<SendValue> for Value
[src]

[src]

Performs the conversion.

impl<'a, T> From<&'a T> for Value where
    T: SetValue + ?Sized
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl FromGlibContainerAsVec<*mut GValue, *mut *mut GValue> for Value
[src]

[src]

[src]

[src]

impl FromGlibContainerAsVec<*mut GValue, *const *mut GValue> for Value
[src]

[src]

[src]

[src]

impl Drop for Value
[src]

[src]

Executes the destructor for this type. Read more

impl<'a> ToGlibContainerFromSlice<'a, *const GValue> for &'a Value
[src]

[src]

[src]

[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut GValue> for &'a Value
[src]

[src]

[src]

[src]

impl Uninitialized for Value
[src]

[src]

Returns an uninitialized value.

impl GstValueExt for Value
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]