Struct gstreamer::caps_features::CapsFeatures
source · #[repr(transparent)]pub struct CapsFeatures(NonNull<GstCapsFeatures>);
Tuple Fields§
§0: NonNull<GstCapsFeatures>
Implementations§
source§impl CapsFeatures
impl CapsFeatures
pub fn new(features: impl IntoIterator<Item = impl IntoGStr>) -> Self
pub fn from_quarks(features: impl IntoIterator<Item = Quark>) -> Self
pub fn new_empty() -> Self
pub fn new_any() -> Self
Methods from Deref<Target = CapsFeaturesRef>§
pub fn as_ptr(&self) -> *const GstCapsFeatures
pub fn as_mut_ptr(&self) -> *mut GstCapsFeatures
pub fn is_empty(&self) -> bool
pub fn is_any(&self) -> bool
pub fn contains(&self, feature: impl IntoGStr) -> bool
pub fn contains_quark(&self, feature: Quark) -> bool
pub fn size(&self) -> u32
pub fn nth(&self, idx: u32) -> Option<&GStr>
pub fn nth_quark(&self, idx: u32) -> Option<Quark>
pub fn add(&mut self, feature: impl IntoGStr)
pub fn remove(&mut self, feature: impl IntoGStr)
pub fn add_from_quark(&mut self, feature: Quark)
pub fn remove_by_quark(&mut self, feature: Quark)
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn is_equal(&self, other: &CapsFeaturesRef) -> bool
Trait Implementations§
source§impl AsMut<CapsFeaturesRef> for CapsFeatures
impl AsMut<CapsFeaturesRef> for CapsFeatures
source§fn as_mut(&mut self) -> &mut CapsFeaturesRef
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
impl AsRef<CapsFeaturesRef> for CapsFeatures
source§fn as_ref(&self) -> &CapsFeaturesRef
fn as_ref(&self) -> &CapsFeaturesRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<CapsFeaturesRef> for CapsFeatures
impl Borrow<CapsFeaturesRef> for CapsFeatures
source§fn borrow(&self) -> &CapsFeaturesRef
fn borrow(&self) -> &CapsFeaturesRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<CapsFeaturesRef> for CapsFeatures
impl BorrowMut<CapsFeaturesRef> for CapsFeatures
source§fn borrow_mut(&mut self) -> &mut CapsFeaturesRef
fn borrow_mut(&mut self) -> &mut CapsFeaturesRef
Mutably borrows from an owned value. Read more
source§impl Clone for CapsFeatures
impl Clone for CapsFeatures
source§impl Debug for CapsFeatures
impl Debug for CapsFeatures
source§impl Deref for CapsFeatures
impl Deref for CapsFeatures
source§type Target = CapsFeaturesRef
type Target = CapsFeaturesRef
The resulting type after dereferencing.
source§fn deref(&self) -> &CapsFeaturesRef
fn deref(&self) -> &CapsFeaturesRef
Dereferences the value.
source§impl DerefMut for CapsFeatures
impl DerefMut for CapsFeatures
source§fn deref_mut(&mut self) -> &mut CapsFeaturesRef
fn deref_mut(&mut self) -> &mut CapsFeaturesRef
Mutably dereferences the value.
source§impl Display for CapsFeatures
impl Display for CapsFeatures
source§impl Drop for CapsFeatures
impl Drop for CapsFeatures
source§impl<'a> From<&'a GStr> for CapsFeatures
impl<'a> From<&'a GStr> for CapsFeatures
source§impl<'a> From<&'a str> for CapsFeatures
impl<'a> From<&'a str> for CapsFeatures
source§impl From<CapsFeatures> for Value
impl From<CapsFeatures> for Value
source§fn from(v: CapsFeatures) -> Value
fn from(v: CapsFeatures) -> Value
Converts to this type from the input type.
source§impl From<Quark> for CapsFeatures
impl From<Quark> for CapsFeatures
source§impl FromGlibPtrFull<*const GstCapsFeatures> for CapsFeatures
impl FromGlibPtrFull<*const GstCapsFeatures> for CapsFeatures
source§unsafe fn from_glib_full(ptr: *const GstCapsFeatures) -> Self
unsafe fn from_glib_full(ptr: *const GstCapsFeatures) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstCapsFeatures> for CapsFeatures
impl FromGlibPtrFull<*mut GstCapsFeatures> for CapsFeatures
source§unsafe fn from_glib_full(ptr: *mut GstCapsFeatures) -> Self
unsafe fn from_glib_full(ptr: *mut GstCapsFeatures) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstCapsFeatures> for CapsFeatures
impl FromGlibPtrNone<*const GstCapsFeatures> for CapsFeatures
source§unsafe fn from_glib_none(ptr: *const GstCapsFeatures) -> Self
unsafe fn from_glib_none(ptr: *const GstCapsFeatures) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstCapsFeatures> for CapsFeatures
impl FromGlibPtrNone<*mut GstCapsFeatures> for CapsFeatures
source§unsafe fn from_glib_none(ptr: *mut GstCapsFeatures) -> Self
unsafe fn from_glib_none(ptr: *mut GstCapsFeatures) -> Self
Safety Read more
source§impl<'a> FromIterator<&'a GStr> for CapsFeatures
impl<'a> FromIterator<&'a GStr> for CapsFeatures
source§impl<'a> FromIterator<&'a str> for CapsFeatures
impl<'a> FromIterator<&'a str> for CapsFeatures
source§impl FromIterator<GString> for CapsFeatures
impl FromIterator<GString> for CapsFeatures
source§impl FromIterator<Quark> for CapsFeatures
impl FromIterator<Quark> for CapsFeatures
source§impl FromIterator<String> for CapsFeatures
impl FromIterator<String> for CapsFeatures
source§impl FromStr for CapsFeatures
impl FromStr for CapsFeatures
source§impl<'a> FromValue<'a> for CapsFeatures
impl<'a> FromValue<'a> for CapsFeatures
source§type Checker = GenericValueTypeOrNoneChecker<CapsFeatures>
type Checker = GenericValueTypeOrNoneChecker<CapsFeatures>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for CapsFeatures
impl GlibPtrDefault for CapsFeatures
type GlibType = *mut GstCapsFeatures
source§impl IntoGlibPtr<*mut GstCapsFeatures> for CapsFeatures
impl IntoGlibPtr<*mut GstCapsFeatures> for CapsFeatures
source§unsafe fn into_glib_ptr(self) -> *mut GstCapsFeatures
unsafe fn into_glib_ptr(self) -> *mut GstCapsFeatures
Transfer: full.
source§impl StaticType for CapsFeatures
impl StaticType for CapsFeatures
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibPtr<'a, *const GstCapsFeatures> for CapsFeatures
impl<'a> ToGlibPtr<'a, *const GstCapsFeatures> for CapsFeatures
type Storage = PhantomData<&'a CapsFeatures>
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstCapsFeatures, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstCapsFeatures, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstCapsFeatures
fn to_glib_full(&self) -> *const GstCapsFeatures
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstCapsFeatures> for CapsFeatures
impl<'a> ToGlibPtr<'a, *mut GstCapsFeatures> for CapsFeatures
type Storage = PhantomData<&'a CapsFeatures>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstCapsFeatures, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstCapsFeatures, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstCapsFeatures
fn to_glib_full(&self) -> *mut GstCapsFeatures
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstCapsFeatures> for CapsFeatures
impl<'a> ToGlibPtrMut<'a, *mut GstCapsFeatures> for CapsFeatures
type Storage = PhantomData<&'a mut CapsFeatures>
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstCapsFeatures, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstCapsFeatures, Self>
Transfer: none. Read more
source§impl ToValue for CapsFeatures
impl ToValue for CapsFeatures
source§impl ToValueOptional for CapsFeatures
impl ToValueOptional for CapsFeatures
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.source§impl ValueType for CapsFeatures
impl ValueType for CapsFeatures
source§type Type = CapsFeatures
type Type = CapsFeatures
Type to get the
Type
from. Read moreimpl Send for CapsFeatures
impl Sync for CapsFeatures
impl TransparentPtrType for CapsFeatures
impl ValueTypeOptional for CapsFeatures
Auto Trait Implementations§
impl Freeze for CapsFeatures
impl RefUnwindSafe for CapsFeatures
impl Unpin for CapsFeatures
impl UnwindSafe for CapsFeatures
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.