[−][src]Struct gstreamer::caps::Caps
Implementations
impl Caps
[src]
pub unsafe fn from_glib_none(ptr: *const GstCaps) -> Self
[src]
pub unsafe fn from_glib_full(ptr: *const GstCaps) -> Self
[src]
pub unsafe fn from_glib_borrow(ptr: *const GstCaps) -> Borrowed<Self>
[src]
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstCaps)
[src]
pub fn make_mut(&mut self) -> &mut CapsRef
[src]
pub fn get_mut(&mut self) -> Option<&mut CapsRef>
[src]
pub fn is_writable(&self) -> bool
[src]
pub unsafe fn into_ptr(self) -> *mut GstCaps
[src]
impl Caps
[src]
pub fn builder(name: &str) -> Builder<NoFeature>
[src]
pub fn builder_full() -> BuilderFull<SomeFeatures>
[src]
pub fn builder_full_with_features(
features: CapsFeatures
) -> BuilderFull<SomeFeatures>
[src]
features: CapsFeatures
) -> BuilderFull<SomeFeatures>
pub fn builder_full_with_any_features() -> BuilderFull<AnyFeatures>
[src]
pub fn new_empty() -> Self
[src]
pub fn new_any() -> Self
[src]
pub fn new_simple(name: &str, values: &[(&str, &dyn ToSendValue)]) -> Self
[src]
pub fn from_iter<'a, I>(iter: I) -> Self where
I: IntoIterator<Item = &'a StructureRef>,
[src]
I: IntoIterator<Item = &'a StructureRef>,
pub fn from_iter_with_features<'a, 'b, I>(iter: I) -> Self where
I: IntoIterator<Item = (&'a StructureRef, &'b CapsFeaturesRef)>,
[src]
I: IntoIterator<Item = (&'a StructureRef, &'b CapsFeaturesRef)>,
pub fn fixate(&mut self)
[src]
pub fn merge(&mut self, other: Self)
[src]
pub fn merge_structure(&mut self, structure: Structure)
[src]
pub fn merge_structure_full(
&mut self,
structure: Structure,
features: Option<CapsFeatures>
)
[src]
&mut self,
structure: Structure,
features: Option<CapsFeatures>
)
pub fn normalize(&mut self)
[src]
pub fn simplify(&mut self)
[src]
pub fn truncate(&mut self)
[src]
Methods from Deref<Target = CapsRef>
pub unsafe fn as_ptr(&self) -> *const GstCaps
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstCaps
[src]
pub fn copy(&self) -> Caps
[src]
pub fn get_structure(&self, idx: u32) -> Option<&StructureRef>
[src]
pub fn get_features(&self, idx: u32) -> Option<&CapsFeaturesRef>
[src]
pub fn get_size(&self) -> u32
[src]
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>
impl<'a> Iterator for Iter<'a> type Item = &'a StructureRef;
[src]
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);
[src]
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
[src]
pub fn intersect(&self, other: &Self) -> Caps
[src]
pub fn intersect_with_mode(&self, other: &Self, mode: CapsIntersectMode) -> Caps
[src]
pub fn is_always_compatible(&self, other: &Self) -> bool
[src]
pub fn is_any(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_fixed(&self) -> bool
[src]
pub fn is_equal_fixed(&self, other: &Self) -> bool
[src]
pub fn is_strictly_equal(&self, other: &Self) -> bool
[src]
pub fn is_subset(&self, superset: &Self) -> bool
[src]
pub fn is_subset_structure(&self, structure: &StructureRef) -> bool
[src]
pub fn is_subset_structure_full(
&self,
structure: &StructureRef,
features: Option<&CapsFeaturesRef>
) -> bool
[src]
&self,
structure: &StructureRef,
features: Option<&CapsFeaturesRef>
) -> bool
pub fn subtract(&self, other: &Self) -> Caps
[src]
Trait Implementations
impl AsRef<CapsRef> for Caps
[src]
impl Borrow<CapsRef> for Caps
[src]
impl Clone for Caps
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Caps
[src]
impl Deref for Caps
[src]
impl<'de> Deserialize<'de> for Caps
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for Caps
[src]
impl Drop for Caps
[src]
impl Eq for Caps
[src]
impl FromGlibContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstCaps,
num: usize
) -> Vec<Self>
[src]
ptr: *const *mut GstCaps,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstCaps,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstCaps,
num: usize
) -> Vec<Self>
impl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *const *mut GstCaps> for Caps
[src]
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstCaps) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstCaps) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstCaps) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstCaps, *mut *mut GstCaps> for Caps
[src]
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstCaps) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstCaps> for Caps
[src]
unsafe fn from_glib_borrow(ptr: *const GstCaps) -> Borrowed<Self>
[src]
impl FromGlibPtrBorrow<*mut GstCaps> for Caps
[src]
unsafe fn from_glib_borrow(ptr: *mut GstCaps) -> Borrowed<Self>
[src]
impl FromGlibPtrFull<*const GstCaps> for Caps
[src]
unsafe fn from_glib_full(ptr: *const GstCaps) -> Self
[src]
impl FromGlibPtrFull<*mut GstCaps> for Caps
[src]
unsafe fn from_glib_full(ptr: *mut GstCaps) -> Self
[src]
impl FromGlibPtrNone<*const GstCaps> for Caps
[src]
unsafe fn from_glib_none(ptr: *const GstCaps) -> Self
[src]
impl FromGlibPtrNone<*mut GstCaps> for Caps
[src]
unsafe fn from_glib_none(ptr: *mut GstCaps) -> Self
[src]
impl FromStr for Caps
[src]
type Err = BoolError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, BoolError>
[src]
impl<'a> FromValueOptional<'a> for Caps
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl GlibPtrDefault for Caps
[src]
impl PartialEq<Caps> for Caps
[src]
impl Send for Caps
[src]
impl Serialize for Caps
[src]
impl SetValue for Caps
[src]
impl SetValueOptional for Caps
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for Caps
[src]
fn static_type() -> Type
[src]
impl Sync for Caps
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstCaps> for Caps
[src]
type Storage = (Vec<Stash<'a, *mut GstCaps, Caps>>, Option<Vec<*mut GstCaps>>)
fn to_glib_none_from_slice(
t: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
[src]
t: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
[src]
_: &'a [Caps]
) -> (*const *mut GstCaps, Self::Storage)
fn to_glib_full_from_slice(_: &[Caps]) -> *const *mut GstCaps
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstCaps> for Caps
[src]
type Storage = (Vec<Stash<'a, *mut GstCaps, Self>>, Option<Vec<*mut GstCaps>>)
fn to_glib_none_from_slice(t: &'a [Caps]) -> (*mut *mut GstCaps, Self::Storage)
[src]
fn to_glib_container_from_slice(
t: &'a [Caps]
) -> (*mut *mut GstCaps, Self::Storage)
[src]
t: &'a [Caps]
) -> (*mut *mut GstCaps, Self::Storage)
fn to_glib_full_from_slice(t: &[Caps]) -> *mut *mut GstCaps
[src]
impl<'a> ToGlibPtr<'a, *const GstCaps> for Caps
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstCaps, Self>
[src]
fn to_glib_full(&self) -> *const GstCaps
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtr<'a, *mut GstCaps> for Caps
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstCaps, Self>
[src]
fn to_glib_full(&self) -> *mut GstCaps
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstCaps> for Caps
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,