#[repr(transparent)]pub struct Caps { /* private fields */ }
Implementations
sourceimpl Caps
impl Caps
pub unsafe fn from_glib_none(ptr: *const GstCaps) -> Self
pub unsafe fn from_glib_full(ptr: *const GstCaps) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstCaps) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstCaps)
pub fn make_mut(&mut self) -> &mut CapsRef
pub fn get_mut(&mut self) -> Option<&mut CapsRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
pub unsafe fn into_ptr(self) -> *mut GstCaps
sourceimpl Caps
impl Caps
pub fn builder(name: &str) -> Builder<NoFeature>
pub fn builder_full() -> BuilderFull<SomeFeatures>
pub fn builder_full_with_features(
features: CapsFeatures
) -> BuilderFull<SomeFeatures>
pub fn builder_full_with_any_features() -> BuilderFull<AnyFeatures>
pub fn new_empty() -> Self
pub fn new_any() -> Self
pub fn new_simple(
name: &str,
values: &[(&str, &(dyn ToSendValue + Sync))]
) -> Self
pub fn fixate(&mut self)
pub fn merge(&mut self, other: Self)
pub fn merge_structure(&mut self, structure: Structure)
pub fn merge_structure_full(
&mut self,
structure: Structure,
features: Option<CapsFeatures>
)
pub fn normalize(&mut self)
pub fn simplify(&mut self)
pub fn truncate(&mut self)
Methods from Deref<Target = CapsRef>
pub unsafe fn as_ptr(&self) -> *const GstCaps
pub unsafe fn as_mut_ptr(&self) -> *mut GstCaps
pub fn copy(&self) -> Caps
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn structure(&self, idx: u32) -> Option<&StructureRef>
pub fn features(&self, idx: u32) -> Option<&CapsFeaturesRef>
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_with_features(&self) -> IterFeatures<'_>ⓘNotable traits for IterFeatures<'a>impl<'a> Iterator for IterFeatures<'a> type Item = (&'a StructureRef, &'a CapsFeaturesRef);
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
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Caps
impl<'de> Deserialize<'de> for Caps
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromGlibContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
impl FromGlibContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstCaps,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
impl FromGlibContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
impl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(_: *const *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(_: *const *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
impl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstCaps> for Caps
impl FromGlibPtrBorrow<*const GstCaps> for Caps
sourceimpl FromGlibPtrBorrow<*mut GstCaps> for Caps
impl FromGlibPtrBorrow<*mut GstCaps> for Caps
sourceimpl FromGlibPtrFull<*const GstCaps> for Caps
impl FromGlibPtrFull<*const GstCaps> for Caps
sourceunsafe fn from_glib_full(ptr: *const GstCaps) -> Self
unsafe fn from_glib_full(ptr: *const GstCaps) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstCaps> for Caps
impl FromGlibPtrFull<*mut GstCaps> for Caps
sourceunsafe fn from_glib_full(ptr: *mut GstCaps) -> Self
unsafe fn from_glib_full(ptr: *mut GstCaps) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstCaps> for Caps
impl FromGlibPtrNone<*const GstCaps> for Caps
sourceunsafe fn from_glib_none(ptr: *const GstCaps) -> Self
unsafe fn from_glib_none(ptr: *const GstCaps) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstCaps> for Caps
impl FromGlibPtrNone<*mut GstCaps> for Caps
sourceunsafe fn from_glib_none(ptr: *mut GstCaps) -> Self
unsafe fn from_glib_none(ptr: *mut GstCaps) -> Self
Safety Read more
sourceimpl FromIterator<(Structure, CapsFeatures)> for Caps
impl FromIterator<(Structure, CapsFeatures)> for Caps
sourcefn from_iter<T: IntoIterator<Item = (Structure, CapsFeatures)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (Structure, CapsFeatures)>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl FromIterator<(Structure, Option<CapsFeatures>)> for Caps
impl FromIterator<(Structure, Option<CapsFeatures>)> for Caps
sourcefn from_iter<T: IntoIterator<Item = (Structure, Option<CapsFeatures>)>>(
iter: T
) -> Self
fn from_iter<T: IntoIterator<Item = (Structure, Option<CapsFeatures>)>>(
iter: T
) -> Self
Creates a value from an iterator. Read more
sourceimpl FromIterator<Structure> for Caps
impl FromIterator<Structure> for Caps
sourcefn from_iter<T: IntoIterator<Item = Structure>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Structure>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl<'a> FromValue<'a> for Caps
impl<'a> FromValue<'a> for Caps
type Checker = GenericValueTypeOrNoneChecker<Caps>
type Checker = GenericValueTypeOrNoneChecker<Caps>
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> FromValue<'a> for &'a Caps
impl<'a> FromValue<'a> for &'a Caps
type Checker = GenericValueTypeOrNoneChecker<&'a Caps>
type Checker = GenericValueTypeOrNoneChecker<&'a Caps>
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 StaticType for Caps
impl StaticType for Caps
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstCaps> for Caps
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstCaps> for Caps
type Storage = (Vec<Stash<'a, *mut GstCaps, Caps>, Global>, Option<Vec<*mut GstCaps, Global>>)
fn to_glib_none_from_slice(
t: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
fn to_glib_full_from_slice(_: &[Caps]) -> *const *mut GstCaps
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstCaps> for Caps
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstCaps> for Caps
type Storage = (Vec<Stash<'a, *mut GstCaps, Caps>, Global>, Option<Vec<*mut GstCaps, Global>>)
fn to_glib_none_from_slice(t: &'a [Caps]) -> (*mut *mut GstCaps, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Caps]
) -> (*mut *mut GstCaps, Self::Storage)
fn to_glib_full_from_slice(t: &[Caps]) -> *mut *mut GstCaps
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstCaps> for Caps
impl<'a> ToGlibPtrMut<'a, *mut GstCaps> for Caps
sourceimpl ToValueOptional for Caps
impl ToValueOptional for Caps
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
impl Eq for Caps
impl Send for Caps
impl Sync for Caps
impl ValueTypeOptional for Caps
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.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.