Struct gstreamer::CapsFeaturesRef
source · pub struct CapsFeaturesRef(/* private fields */);
Implementations§
source§impl CapsFeaturesRef
impl CapsFeaturesRef
pub unsafe fn from_glib_borrow<'a>( ptr: *const GstCapsFeatures, ) -> &'a CapsFeaturesRef
pub unsafe fn from_glib_borrow_mut<'a>( ptr: *mut GstCapsFeatures, ) -> &'a mut CapsFeaturesRef
pub fn as_ptr(&self) -> *const GstCapsFeatures
pub fn as_mut_ptr(&self) -> *mut GstCapsFeatures
pub fn is_empty(&self) -> bool
pub fn is_any(&self) -> bool
pub fn contains(&self, feature: impl IntoGStr) -> bool
pub fn contains_quark(&self, feature: Quark) -> bool
pub fn size(&self) -> usize
pub fn nth(&self, idx: usize) -> Option<&GStr>
pub fn nth_quark(&self, idx: usize) -> Option<Quark>
pub fn add(&mut self, feature: impl IntoGStr)
pub fn remove(&mut self, feature: impl IntoGStr)
pub fn add_from_quark(&mut self, feature: Quark)
pub fn remove_by_quark(&mut self, feature: Quark)
pub fn iter(&self) -> Iter<'_>
pub fn is_equal(&self, other: &CapsFeaturesRef) -> bool
Trait Implementations§
source§impl AsMut<CapsFeaturesRef> for CapsFeatures
impl AsMut<CapsFeaturesRef> for CapsFeatures
source§fn as_mut(&mut self) -> &mut CapsFeaturesRef
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
impl AsRef<CapsFeaturesRef> for CapsFeatures
source§fn as_ref(&self) -> &CapsFeaturesRef
fn as_ref(&self) -> &CapsFeaturesRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<CapsFeaturesRef> for CapsFeatures
impl Borrow<CapsFeaturesRef> for CapsFeatures
source§fn borrow(&self) -> &CapsFeaturesRef
fn borrow(&self) -> &CapsFeaturesRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<CapsFeaturesRef> for CapsFeatures
impl BorrowMut<CapsFeaturesRef> for CapsFeatures
source§fn borrow_mut(&mut self) -> &mut CapsFeaturesRef
fn borrow_mut(&mut self) -> &mut CapsFeaturesRef
Mutably borrows from an owned value. Read more
source§impl Debug for CapsFeaturesRef
impl Debug for CapsFeaturesRef
source§impl Display for CapsFeaturesRef
impl Display for CapsFeaturesRef
source§impl<'a> Extend<&'a GStr> for CapsFeaturesRef
impl<'a> Extend<&'a GStr> for CapsFeaturesRef
source§fn extend<T: IntoIterator<Item = &'a GStr>>(&mut self, iter: T)
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)
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)
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
impl<'a> Extend<&'a str> for CapsFeaturesRef
source§fn extend<T: IntoIterator<Item = &'a str>>(&mut self, iter: T)
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)
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)
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
impl Extend<GString> for CapsFeaturesRef
source§fn extend<T: IntoIterator<Item = GString>>(&mut self, iter: T)
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)
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)
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
impl Extend<Quark> for CapsFeaturesRef
source§fn extend<T: IntoIterator<Item = Quark>>(&mut self, iter: T)
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)
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)
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
impl Extend<String> for CapsFeaturesRef
source§fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T)
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)
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)
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
impl<'a> FromValue<'a> for &'a CapsFeaturesRef
§type Checker = GenericValueTypeOrNoneChecker<&'a CapsFeaturesRef>
type Checker = GenericValueTypeOrNoneChecker<&'a CapsFeaturesRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> IntoIterator for &'a CapsFeaturesRef
impl<'a> IntoIterator for &'a CapsFeaturesRef
source§impl Serialize for CapsFeaturesRef
impl Serialize for CapsFeaturesRef
source§impl StaticType for CapsFeaturesRef
impl StaticType for CapsFeaturesRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for CapsFeaturesRef
impl ToOwned for CapsFeaturesRef
§type Owned = CapsFeatures
type Owned = CapsFeatures
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> CapsFeatures
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)
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
impl ToValue for CapsFeaturesRef
source§impl ToValueOptional for CapsFeaturesRef
impl ToValueOptional for CapsFeaturesRef
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.impl Send for CapsFeaturesRef
impl Sync for CapsFeaturesRef
Auto Trait Implementations§
impl Freeze for CapsFeaturesRef
impl RefUnwindSafe for CapsFeaturesRef
impl !Unpin for CapsFeaturesRef
impl UnwindSafe for CapsFeaturesRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.