pub struct CapsRef(/* private fields */);
Implementations§
source§impl CapsRef
impl CapsRef
pub fn as_ptr(&self) -> *const GstCaps
pub fn as_mut_ptr(&self) -> *mut GstCaps
pub unsafe fn from_ptr<'a>(ptr: *const GstCaps) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstCaps) -> &'a mut Self
pub fn copy(&self) -> Caps
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &CapsRef, other: &CapsRef) -> bool
source§impl CapsRef
impl CapsRef
pub fn set(&mut self, name: impl IntoGStr, value: impl ToSendValue + Sync)
pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
pub fn structure(&self, idx: u32) -> Option<&StructureRef>
pub fn structure_mut(&mut self, idx: u32) -> Option<&mut StructureRef>
pub fn features(&self, idx: u32) -> Option<&CapsFeaturesRef>
pub fn features_mut(&mut self, idx: u32) -> Option<&mut CapsFeaturesRef>
pub fn set_features(&mut self, idx: u32, features: Option<CapsFeatures>)
pub fn set_features_simple(&mut self, features: Option<CapsFeatures>)
Available on crate feature
v1_16
only.pub fn size(&self) -> u32
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_> ⓘ
pub fn iter_with_features(&self) -> IterFeatures<'_> ⓘ
pub fn iter_with_features_mut(&mut self) -> IterFeaturesMut<'_> ⓘ
pub fn append_structure(&mut self, structure: Structure)
pub fn append_structure_full( &mut self, structure: Structure, features: Option<CapsFeatures> )
pub fn remove_structure(&mut self, idx: u32)
pub fn append(&mut self, other: Caps)
pub fn can_intersect(&self, other: &Self) -> bool
pub fn intersect(&self, other: &Self) -> Caps
pub fn intersect_with_mode(&self, other: &Self, mode: CapsIntersectMode) -> Caps
pub fn is_always_compatible(&self, other: &Self) -> bool
pub fn is_any(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn is_fixed(&self) -> bool
pub fn is_equal_fixed(&self, other: &Self) -> bool
pub fn is_strictly_equal(&self, other: &Self) -> bool
pub fn is_subset(&self, superset: &Self) -> bool
pub fn is_subset_structure(&self, structure: &StructureRef) -> bool
pub fn is_subset_structure_full( &self, structure: &StructureRef, features: Option<&CapsFeaturesRef> ) -> bool
pub fn subtract(&self, other: &Self) -> Caps
pub fn serialize(&self, flags: SerializeFlags) -> GString
Available on crate feature
v1_20
only.pub fn foreach<F: FnMut(&CapsFeaturesRef, &StructureRef) -> ControlFlow<()>>( &self, func: F ) -> bool
pub fn map_in_place<F: FnMut(&mut CapsFeaturesRef, &mut StructureRef) -> ControlFlow<()>>( &mut self, func: F ) -> bool
pub fn filter_map_in_place<F: FnMut(&mut CapsFeaturesRef, &mut StructureRef) -> CapsFilterMapAction>( &mut self, func: F )
Trait Implementations§
source§impl Extend<(Structure, CapsFeatures)> for CapsRef
impl Extend<(Structure, CapsFeatures)> for CapsRef
source§fn extend<T: IntoIterator<Item = (Structure, CapsFeatures)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (Structure, CapsFeatures)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<(Structure, Option<CapsFeatures>)> for CapsRef
impl Extend<(Structure, Option<CapsFeatures>)> for CapsRef
source§fn extend<T: IntoIterator<Item = (Structure, Option<CapsFeatures>)>>(
&mut self,
iter: T
)
fn extend<T: IntoIterator<Item = (Structure, Option<CapsFeatures>)>>( &mut self, iter: T )
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<Caps> for CapsRef
impl Extend<Caps> for CapsRef
source§fn extend<T: IntoIterator<Item = Caps>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Caps>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<Structure> for CapsRef
impl Extend<Structure> for CapsRef
source§fn extend<T: IntoIterator<Item = Structure>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Structure>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<'a> FromValue<'a> for &'a CapsRef
impl<'a> FromValue<'a> for &'a CapsRef
§type Checker = GenericValueTypeOrNoneChecker<&'a CapsRef>
type Checker = GenericValueTypeOrNoneChecker<&'a CapsRef>
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<'a> IntoIterator for &'a CapsRef
impl<'a> IntoIterator for &'a CapsRef
§type IntoIter = IterFeatures<'a>
type IntoIter = IterFeatures<'a>
Which kind of iterator are we turning this into?
§type Item = (&'a StructureRef, &'a CapsFeaturesRef)
type Item = (&'a StructureRef, &'a CapsFeaturesRef)
The type of the elements being iterated over.
source§impl<'a> IntoIterator for &'a mut CapsRef
impl<'a> IntoIterator for &'a mut CapsRef
§type IntoIter = IterFeaturesMut<'a>
type IntoIter = IterFeaturesMut<'a>
Which kind of iterator are we turning this into?
§type Item = (&'a mut StructureRef, &'a mut CapsFeaturesRef)
type Item = (&'a mut StructureRef, &'a mut CapsFeaturesRef)
The type of the elements being iterated over.
source§impl PartialEq<Caps> for CapsRef
impl PartialEq<Caps> for CapsRef
source§impl PartialEq<CapsRef> for Caps
impl PartialEq<CapsRef> for Caps
source§impl PartialEq for CapsRef
impl PartialEq for CapsRef
source§impl StaticType for CapsRef
impl StaticType for CapsRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for CapsRef
impl Send for CapsRef
impl Sync for CapsRef
Auto Trait Implementations§
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> 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.