Enum gstreamer::Type

source ·
pub enum Type {
Show 23 variants Invalid, Unit, I8, U8, Bool, I32, U32, ILong, ULong, I64, U64, F32, F64, String, Pointer, Variant, BaseInterface, BaseEnum, BaseFlags, BaseBoxed, BaseParamSpec, BaseObject, Other(usize),
}
Expand description

A GLib or GLib-based library type

Variants

Invalid

An invalid Type used as error return value in some functions

Unit

The fundamental type corresponding to the unit type ()

I8

The fundamental type corresponding to i8

U8

The fundamental type corresponding to u8

Bool

The fundamental type corresponding to bool

I32

The fundamental type corresponding to i32

U32

The fundamental type corresponding to u32

ILong

The fundamental type corresponding to C long

ULong

The fundamental type corresponding to C unsigned long

I64

The fundamental type corresponding to i64

U64

The fundamental type corresponding to u64

F32

The fundamental type corresponding to f32

F64

The fundamental type corresponding to f64

String

The fundamental type corresponding to String

Pointer

The fundamental type corresponding to a pointer

Variant

The fundamental type of GVariant

BaseInterface

The fundamental type from which all interfaces are derived

BaseEnum

The fundamental type from which all enumeration types are derived

BaseFlags

The fundamental type from which all flags types are derived

BaseBoxed

The fundamental type from which all boxed types are derived

BaseParamSpec

The fundamental type from which all GParamSpec types are derived

BaseObject

The fundamental type from which all objects are derived

Other(usize)

A non-fundamental type identified by value of type usize

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. 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
Returns the type identifier of Self.

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 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
Returns a Value clone of self.
Returns the type identifer of self. 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.