Skip to main content

CapsFeatures

Struct CapsFeatures 

Source
#[repr(transparent)]
pub struct CapsFeatures(NonNull<GstCapsFeatures>);

Tuple Fields§

§0: NonNull<GstCapsFeatures>

Implementations§

Source§

impl CapsFeatures

Source

pub fn new<S: IntoGStr>(features: impl IntoIterator<Item = S>) -> Self

Source

pub fn new_from_static<S: AsRef<GStr> + 'static>( features: impl IntoIterator<Item = S>, ) -> Self

Source

pub fn new_from_id<S: AsRef<IdStr>>( features: impl IntoIterator<Item = S>, ) -> Self

Source

pub fn from_quarks(features: impl IntoIterator<Item = Quark>) -> Self

👎Deprecated:

use new_by_id() instead

Source

pub fn new_empty() -> Self

Source

pub fn new_any() -> Self

Methods from Deref<Target = CapsFeaturesRef>§

Source

pub fn as_ptr(&self) -> *const GstCapsFeatures

Source

pub fn as_mut_ptr(&self) -> *mut GstCapsFeatures

Source

pub fn is_empty(&self) -> bool

Source

pub fn is_any(&self) -> bool

Source

pub fn contains(&self, feature: impl IntoGStr) -> bool

Source

pub fn contains_by_id(&self, feature: impl AsRef<IdStr>) -> bool

Source

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

👎Deprecated:

use contains_by_id() instead

Source

pub fn size(&self) -> usize

Source

pub fn nth(&self, idx: usize) -> Option<&GStr>

Source

pub fn nth_quark(&self, idx: usize) -> Option<Quark>

👎Deprecated:

use nth_by_id() instead

Source

pub fn add(&mut self, feature: impl IntoGStr)

Source

pub fn add_from_static(&mut self, feature: impl AsRef<GStr> + 'static)

Source

pub fn add_from_id(&mut self, feature: impl AsRef<IdStr>)

Source

pub fn remove(&mut self, feature: impl IntoGStr)

Source

pub fn remove_by_id(&mut self, feature: impl AsRef<IdStr>)

Source

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

👎Deprecated:

use add_by_id() instead

Source

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

👎Deprecated:

use remove_by_id() instead

Source

pub fn iter(&self) -> Iter<'_> ⓘ

Source

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

Trait Implementations§

Source§

impl AsMut<CapsFeaturesRef> for CapsFeatures

Source§

fn as_mut(&mut self) -> &mut CapsFeaturesRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<CapsFeaturesRef> for CapsFeatures

Source§

fn as_ref(&self) -> &CapsFeaturesRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<CapsFeaturesRef> for CapsFeatures

Source§

fn borrow(&self) -> &CapsFeaturesRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<CapsFeaturesRef> for CapsFeatures

Source§

fn borrow_mut(&mut self) -> &mut CapsFeaturesRef

Mutably borrows from an owned value. Read more
Source§

impl Clone for CapsFeatures

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CapsFeatures

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Deref for CapsFeatures

Source§

type Target = CapsFeaturesRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &CapsFeaturesRef

Dereferences the value.
Source§

impl DerefMut for CapsFeatures

Source§

fn deref_mut(&mut self) -> &mut CapsFeaturesRef

Mutably dereferences the value.
Source§

impl Display for CapsFeatures

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Drop for CapsFeatures

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<'a> From<&'a GStr> for CapsFeatures

Source§

fn from(value: &'a GStr) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a str> for CapsFeatures

Source§

fn from(value: &'a str) -> Self

Converts to this type from the input type.
Source§

impl From<CapsFeatures> for Value

Source§

fn from(v: CapsFeatures) -> Value

Converts to this type from the input type.
Source§

impl<Id: AsRef<IdStr>> From<Id> for CapsFeatures

Source§

fn from(value: Id) -> Self

Converts to this type from the input type.
Source§

impl From<Quark> for CapsFeatures

Source§

fn from(value: Quark) -> Self

Converts to this type from the input type.
Source§

impl<'a, const N: usize> From<[&'a GStr; N]> for CapsFeatures

Source§

fn from(value: [&'a GStr; N]) -> Self

Converts to this type from the input type.
Source§

impl<'a, const N: usize> From<[&'a str; N]> for CapsFeatures

Source§

fn from(value: [&'a str; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[GString; N]> for CapsFeatures

Source§

fn from(value: [GString; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize, Id: AsRef<IdStr>> From<[Id; N]> for CapsFeatures

Source§

fn from(value: [Id; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[Quark; N]> for CapsFeatures

Source§

fn from(value: [Quark; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[String; N]> for CapsFeatures

Source§

fn from(value: [String; N]) -> Self

Converts to this type from the input type.
Source§

impl FromGlibPtrFull<*const GstCapsFeatures> for CapsFeatures

Source§

impl FromGlibPtrFull<*mut GstCapsFeatures> for CapsFeatures

Source§

impl FromGlibPtrNone<*const GstCapsFeatures> for CapsFeatures

Source§

impl FromGlibPtrNone<*mut GstCapsFeatures> for CapsFeatures

Source§

impl<'a> FromIterator<&'a GStr> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = &'a GStr>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a> FromIterator<&'a str> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = &'a str>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromIterator<GString> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = GString>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<Id: AsRef<IdStr>> FromIterator<Id> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = Id>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromIterator<Quark> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = Quark>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromIterator<String> for CapsFeatures

Source§

fn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl FromStr for CapsFeatures

Source§

type Err = BoolError

The associated error which can be returned from parsing.
Source§

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

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

impl<'a> FromValue<'a> for CapsFeatures

Source§

type Checker = GenericValueTypeOrNoneChecker<CapsFeatures>

Value type checker.
Source§

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

Get the contained value from a Value. Read more
Source§

impl GlibPtrDefault for CapsFeatures

Source§

impl Hash for CapsFeatures

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoGlibPtr<*mut GstCapsFeatures> for CapsFeatures

Source§

fn into_glib_ptr(self) -> *mut GstCapsFeatures

Transfer: full.
Source§

impl Send for CapsFeatures

Source§

impl StaticType for CapsFeatures

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Sync for CapsFeatures

Source§

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

Source§

type Storage = PhantomData<&'a CapsFeatures>

Source§

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

Transfer: none. Read more
Source§

fn to_glib_full(&self) -> *const GstCapsFeatures

Transfer: full. Read more
Source§

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

Transfer: container. Read more
Source§

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

Source§

type Storage = PhantomData<&'a CapsFeatures>

Source§

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

Transfer: none. Read more
Source§

fn to_glib_full(&self) -> *mut GstCapsFeatures

Transfer: full. Read more
Source§

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

Transfer: container. Read more
Source§

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

Source§

type Storage = PhantomData<&'a mut CapsFeatures>

Source§

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

Transfer: none. Read more
Source§

impl ToValue for CapsFeatures

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ToValueOptional for CapsFeatures

Source§

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

Convert an Option to a Value.
Source§

impl TransparentPtrType for CapsFeatures

Source§

impl ValueType for CapsFeatures

Source§

type Type = CapsFeatures

Type to get the Type from. Read more
Source§

impl ValueTypeOptional for CapsFeatures

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TransparentType for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.