[][src]Enum gstreamer::Type

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

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

Methods

impl Type[src]

pub fn name(&self) -> String[src]

pub fn qname(&self) -> Quark[src]

pub fn is_a(&self, other: &Type) -> bool[src]

pub fn parent(&self) -> Option<Type>[src]

pub fn children(&self) -> Vec<Type>[src]

pub fn interfaces(&self) -> Vec<Type>[src]

pub fn interface_prerequisites(&self) -> Vec<Type>[src]

pub fn from_name<'a, P>(name: P) -> Option<Type> where
    P: Into<&'a str>, 
[src]

Trait Implementations

impl StaticType for Type[src]

impl Display for Type[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut usize> for Type[src]

impl<'a> FromValue<'a> for Type[src]

impl FromGlibContainerAsVec<Type, *const usize> for Type[src]

impl FromGlibContainerAsVec<Type, *mut usize> for Type[src]

impl Clone for Type[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl FromGlib<usize> for Type[src]

impl Eq for Type[src]

impl ToGlib for Type[src]

type GlibType = usize

impl Debug for Type[src]

impl Copy for Type[src]

impl SetValue for Type[src]

impl<'a> FromValueOptional<'a> for Type[src]

impl PartialEq<Type> for Type[src]

Auto Trait Implementations

impl Send for Type

impl Sync for Type

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

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

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]