Struct gstreamer::CapsFeaturesRef

source ·
pub struct CapsFeaturesRef(/* private fields */);

Implementations§

source§

impl CapsFeaturesRef

source

pub unsafe fn from_glib_borrow<'a>( ptr: *const GstCapsFeatures, ) -> &'a CapsFeaturesRef

source

pub unsafe fn from_glib_borrow_mut<'a>( ptr: *mut GstCapsFeatures, ) -> &'a mut CapsFeaturesRef

source

pub fn as_ptr(&self) -> *const GstCapsFeatures

source

pub fn as_mut_ptr(&self) -> *mut GstCapsFeatures

source

pub fn is_empty(&self) -> bool

source

pub fn is_any(&self) -> bool

source

pub fn contains(&self, feature: impl IntoGStr) -> bool

source

pub fn contains_quark(&self, feature: Quark) -> bool

source

pub fn size(&self) -> usize

source

pub fn nth(&self, idx: usize) -> Option<&GStr>

source

pub fn nth_quark(&self, idx: usize) -> Option<Quark>

source

pub fn add(&mut self, feature: impl IntoGStr)

source

pub fn remove(&mut self, feature: impl IntoGStr)

source

pub fn add_from_quark(&mut self, feature: Quark)

source

pub fn remove_by_quark(&mut self, feature: Quark)

source

pub fn iter(&self) -> Iter<'_>

source

pub fn is_equal(&self, other: &CapsFeaturesRef) -> bool

Trait Implementations§

source§

impl AsMut<CapsFeaturesRef> for CapsFeatures

source§

fn as_mut(&mut self) -> &mut CapsFeaturesRef

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<CapsFeaturesRef> for CapsFeatures

source§

fn as_ref(&self) -> &CapsFeaturesRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<CapsFeaturesRef> for CapsFeatures

source§

fn borrow(&self) -> &CapsFeaturesRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<CapsFeaturesRef> for CapsFeatures

source§

fn borrow_mut(&mut self) -> &mut CapsFeaturesRef

Mutably borrows from an owned value. Read more
source§

impl Debug for CapsFeaturesRef

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for CapsFeaturesRef

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> Extend<&'a GStr> for CapsFeaturesRef

source§

fn extend<T: IntoIterator<Item = &'a GStr>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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> Extend<&'a str> for CapsFeaturesRef

source§

fn extend<T: IntoIterator<Item = &'a str>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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<GString> for CapsFeaturesRef

source§

fn extend<T: IntoIterator<Item = GString>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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<Quark> for CapsFeaturesRef

source§

fn extend<T: IntoIterator<Item = Quark>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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<String> for CapsFeaturesRef

source§

fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T)

Extends a collection with the contents of an iterator. Read more
source§

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)

🔬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 CapsFeaturesRef

§

type Checker = GenericValueTypeOrNoneChecker<&'a CapsFeaturesRef>

Value type checker.
source§

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

Get the contained value from a Value. Read more
source§

impl<'a> IntoIterator for &'a CapsFeaturesRef

§

type IntoIter = Iter<'a>

Which kind of iterator are we turning this into?
§

type Item = &'a GStr

The type of the elements being iterated over.
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl Serialize for CapsFeaturesRef

source§

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

Serialize this value into the given Serde serializer. Read more
source§

impl StaticType for CapsFeaturesRef

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl ToOwned for CapsFeaturesRef

§

type Owned = CapsFeatures

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> CapsFeatures

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

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

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

impl ToValue for CapsFeaturesRef

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

impl ToValueOptional for CapsFeaturesRef

source§

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a Value.
source§

impl Send for CapsFeaturesRef

source§

impl Sync for CapsFeaturesRef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.