Struct gstreamer::caps::CapsRef[][src]

#[repr(transparent)]
pub struct CapsRef(_);

Implementations

impl CapsRef[src]

pub unsafe fn as_ptr(&self) -> *const GstCaps[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstCaps[src]

pub unsafe fn from_ptr<'a>(ptr: *const GstCaps) -> &'a Self[src]

pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstCaps) -> &'a mut Self[src]

pub fn copy(&self) -> Caps[src]

impl CapsRef[src]

pub fn set_simple(&mut self, values: &[(&str, &(dyn ToSendValue + Sync))])[src]

pub fn structure(&self, idx: u32) -> Option<&StructureRef>[src]

pub fn structure_mut(&mut self, idx: u32) -> Option<&mut StructureRef>[src]

pub fn features(&self, idx: u32) -> Option<&CapsFeaturesRef>[src]

pub fn features_mut(&mut self, idx: u32) -> Option<&mut CapsFeaturesRef>[src]

pub fn set_features(&mut self, idx: u32, features: Option<CapsFeatures>)[src]

pub fn set_features_simple(&mut self, features: Option<CapsFeatures>)[src]

This is supported on crate feature v1_16 only.

pub fn 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]

pub fn iter_mut(&mut self) -> IterMut<'_>

Notable traits for IterMut<'a>

impl<'a> Iterator for IterMut<'a> type Item = &'a mut StructureRef;
[src]

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]

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);
[src]

pub fn append_structure(&mut self, structure: Structure)[src]

pub fn append_structure_full(
    &mut self,
    structure: Structure,
    features: Option<CapsFeatures>
)
[src]

pub fn remove_structure(&mut self, idx: u32)[src]

pub fn append(&mut self, other: Caps)[src]

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]

pub fn subtract(&self, other: &Self) -> Caps[src]

Trait Implementations

impl AsRef<CapsRef> for Caps[src]

fn as_ref(&self) -> &CapsRef[src]

Performs the conversion.

impl Borrow<CapsRef> for Caps[src]

fn borrow(&self) -> &CapsRef[src]

Immutably borrows from an owned value. Read more

impl Debug for CapsRef[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for CapsRef[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> FromValue<'a> for &'a CapsRef[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl GlibPtrDefault for CapsRef[src]

type GlibType = *mut GstCaps

impl PartialEq<CapsRef> for CapsRef[src]

fn eq(&self, other: &CapsRef) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Serialize for CapsRef[src]

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>[src]

Serialize this value into the given Serde serializer. Read more

impl StaticType for CapsRef[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl ToOwned for CapsRef[src]

type Owned = Caps

The resulting type after obtaining ownership.

fn to_owned(&self) -> Caps[src]

Creates owned data from borrowed data, usually by cloning. Read more

fn clone_into(&self, target: &mut Self::Owned)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Eq for CapsRef[src]

impl Send for CapsRef[src]

impl Sync for CapsRef[src]

Auto Trait Implementations

impl RefUnwindSafe for CapsRef

impl Unpin for CapsRef

impl UnwindSafe for CapsRef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.