Struct gstreamer::CapsFeatures[][src]

pub struct CapsFeatures(_);

Implementations

impl CapsFeatures[src]

pub fn new(features: &[&str]) -> Self[src]

pub fn from_quarks(features: &[Quark]) -> Self[src]

pub fn new_empty() -> Self[src]

pub fn new_any() -> Self[src]

pub unsafe fn into_ptr(self) -> *mut GstCapsFeatures[src]

Methods from Deref<Target = CapsFeaturesRef>

pub unsafe fn as_ptr(&self) -> *const GstCapsFeatures[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstCapsFeatures[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_any(&self) -> bool[src]

pub fn contains(&self, feature: &str) -> bool[src]

pub fn contains_quark(&self, feature: Quark) -> bool[src]

pub fn size(&self) -> u32[src]

pub fn nth(&self, idx: u32) -> Option<&str>[src]

pub fn nth_quark(&self, idx: u32) -> Option<Quark>[src]

pub fn add(&mut self, feature: &str)[src]

pub fn remove(&mut self, feature: &str)[src]

pub fn add_from_quark(&mut self, feature: Quark)[src]

pub fn remove_by_quark(&mut self, feature: Quark)[src]

pub fn iter(&self) -> Iter<'_>[src]

pub fn is_equal(&self, other: &CapsFeaturesRef) -> bool[src]

Trait Implementations

impl AsMut<CapsFeaturesRef> for CapsFeatures[src]

fn as_mut(&mut self) -> &mut CapsFeaturesRef[src]

Performs the conversion.

impl AsRef<CapsFeaturesRef> for CapsFeatures[src]

fn as_ref(&self) -> &CapsFeaturesRef[src]

Performs the conversion.

impl Borrow<CapsFeaturesRef> for CapsFeatures[src]

fn borrow(&self) -> &CapsFeaturesRef[src]

Immutably borrows from an owned value. Read more

impl BorrowMut<CapsFeaturesRef> for CapsFeatures[src]

fn borrow_mut(&mut self) -> &mut CapsFeaturesRef[src]

Mutably borrows from an owned value. Read more

impl Clone for CapsFeatures[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for CapsFeatures[src]

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

Formats the value using the given formatter. Read more

impl Deref for CapsFeatures[src]

type Target = CapsFeaturesRef

The resulting type after dereferencing.

fn deref(&self) -> &CapsFeaturesRef[src]

Dereferences the value.

impl DerefMut for CapsFeatures[src]

fn deref_mut(&mut self) -> &mut CapsFeaturesRef[src]

Mutably dereferences the value.

impl<'de> Deserialize<'de> for CapsFeatures[src]

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

Deserialize this value from the given Serde deserializer. Read more

impl Display for CapsFeatures[src]

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

Formats the value using the given formatter. Read more

impl Drop for CapsFeatures[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl FromGlibPtrFull<*const GstCapsFeatures> for CapsFeatures[src]

unsafe fn from_glib_full(ptr: *const GstCapsFeatures) -> Self[src]

Safety Read more

impl FromGlibPtrFull<*mut GstCapsFeatures> for CapsFeatures[src]

unsafe fn from_glib_full(ptr: *mut GstCapsFeatures) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*const GstCapsFeatures> for CapsFeatures[src]

unsafe fn from_glib_none(ptr: *const GstCapsFeatures) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*mut GstCapsFeatures> for CapsFeatures[src]

unsafe fn from_glib_none(ptr: *mut GstCapsFeatures) -> Self[src]

Safety Read more

impl FromStr for CapsFeatures[src]

type Err = BoolError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Parses a string s to return a value of this type. Read more

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

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl GlibPtrDefault for CapsFeatures[src]

type GlibType = *mut GstCapsFeatures

impl Serialize for CapsFeatures[src]

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

Serialize this value into the given Serde serializer. Read more

impl StaticType for CapsFeatures[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl<'a> ToGlibPtr<'a, *const GstCapsFeatures> for CapsFeatures[src]

type Storage = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *const GstCapsFeatures, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *const GstCapsFeatures[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut GstCapsFeatures> for CapsFeatures[src]

type Storage = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *mut GstCapsFeatures, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *mut GstCapsFeatures[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtrMut<'a, *mut GstCapsFeatures> for CapsFeatures[src]

type Storage = &'a mut Self

fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstCapsFeatures, Self>[src]

Transfer: none. Read more

impl ToValue for CapsFeatures[src]

fn to_value(&self) -> Value[src]

Convert a value to a Value.

fn value_type(&self) -> Type[src]

Returns the type identifer of self. Read more

impl ToValueOptional for CapsFeatures[src]

fn to_value_optional(s: Option<&Self>) -> Value[src]

Convert an Option to a Value.

impl ValueType for CapsFeatures[src]

type Type = Self

Type to get the Type from. Read more

impl Send for CapsFeatures[src]

impl Sync for CapsFeatures[src]

Auto Trait Implementations

impl RefUnwindSafe for CapsFeatures

impl Unpin for CapsFeatures

impl UnwindSafe for CapsFeatures

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

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

pub fn to_send_value(&self) -> SendValue[src]

Returns a SendValue clone of self.

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

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

Converts the given value to a String. Read more

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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

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

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>, 
[src]