Struct Caps Features Ref
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_by_id(&self, feature: impl AsRef<IdStr>) -> bool
pub fn contains_quark(&self, feature: Quark) -> bool
👎Deprecated: use
contains_by_id() insteadpub fn size(&self) -> usize
pub fn nth(&self, idx: usize) -> Option<&GStr>
pub fn nth_id(&self, idx: usize) -> Option<&IdStr>
pub fn nth_quark(&self, idx: usize) -> Option<Quark>
👎Deprecated: use
nth_by_id() insteadpub fn add(&mut self, feature: impl IntoGStr)
pub fn add_from_static(&mut self, feature: impl AsRef<GStr> + 'static)
pub fn add_from_id(&mut self, feature: impl AsRef<IdStr>)
pub fn remove(&mut self, feature: impl IntoGStr)
pub fn remove_by_id(&mut self, feature: impl AsRef<IdStr>)
pub fn add_from_quark(&mut self, feature: Quark)
👎Deprecated: use
add_by_id() insteadpub fn remove_by_quark(&mut self, feature: Quark)
👎Deprecated: use
remove_by_id() insteadpub 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<Id: AsRef<IdStr>> Extend<Id> for CapsFeaturesRef
impl<Id: AsRef<IdStr>> Extend<Id> for CapsFeaturesRef
Source§fn extend<T: IntoIterator<Item = Id>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Id>>(&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
Source§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 Hash for CapsFeaturesRef
impl Hash for CapsFeaturesRef
Source§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
Source§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.