#[repr(transparent)]pub struct CapsRef(_);
Implementations
sourceimpl CapsRef
impl CapsRef
pub unsafe fn as_ptr(&self) -> *const GstCaps
pub unsafe 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
sourceimpl CapsRef
impl CapsRef
pub fn set_simple(&mut self, values: &[(&str, &(dyn ToSendValue + Sync))])
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>)
v1_16
only.pub fn size(&self) -> u32
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = &'a StructureRef;
pub fn iter_mut(&mut self) -> IterMut<'_>ⓘNotable traits for IterMut<'a>impl<'a> Iterator for IterMut<'a> type Item = &'a mut StructureRef;
pub fn iter_with_features(&self) -> IterFeatures<'_>ⓘNotable traits for IterFeatures<'a>impl<'a> Iterator for IterFeatures<'a> type Item = (&'a StructureRef, &'a CapsFeaturesRef);
pub fn iter_with_features_mut(&mut self) -> IterFeaturesMut<'_>ⓘNotable traits for IterFeaturesMut<'a>impl<'a> Iterator for IterFeaturesMut<'a> type Item = (&'a mut StructureRef, &'a mut CapsFeaturesRef);
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
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
sourceimpl Extend<(Structure, CapsFeatures)> for CapsRef
impl Extend<(Structure, CapsFeatures)> for CapsRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl Extend<(Structure, Option<CapsFeatures>)> for CapsRef
impl Extend<(Structure, Option<CapsFeatures>)> for CapsRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl Extend<Structure> for CapsRef
impl Extend<Structure> for CapsRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<'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.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'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.
sourceimpl<'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.
sourceimpl StaticType for CapsRef
impl StaticType for CapsRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for CapsRef
impl ToOwned for CapsRef
impl Eq for CapsRef
impl Send for CapsRef
impl Sync for CapsRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.