Struct gstreamer::CapsFeaturesRef
source · [−]#[repr(transparent)]pub struct CapsFeaturesRef(_);
Implementations
sourceimpl 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 unsafe fn as_ptr(&self) -> *const GstCapsFeatures
pub unsafe fn as_mut_ptr(&self) -> *mut GstCapsFeatures
pub fn is_empty(&self) -> bool
pub fn is_any(&self) -> bool
pub fn contains(&self, feature: &str) -> bool
pub fn contains_quark(&self, feature: Quark) -> bool
pub fn size(&self) -> u32
pub fn nth(&self, idx: u32) -> Option<&str>
pub fn nth_quark(&self, idx: u32) -> Option<Quark>
pub fn add(&mut self, feature: &str)
pub fn remove(&mut self, feature: &str)
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
sourceimpl AsMut<CapsFeaturesRef> for CapsFeatures
impl AsMut<CapsFeaturesRef> for CapsFeatures
sourcefn 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.
sourceimpl AsRef<CapsFeaturesRef> for CapsFeatures
impl AsRef<CapsFeaturesRef> for CapsFeatures
sourcefn as_ref(&self) -> &CapsFeaturesRef
fn as_ref(&self) -> &CapsFeaturesRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<CapsFeaturesRef> for CapsFeatures
impl Borrow<CapsFeaturesRef> for CapsFeatures
sourcefn borrow(&self) -> &CapsFeaturesRef
fn borrow(&self) -> &CapsFeaturesRef
Immutably borrows from an owned value. Read more
sourceimpl BorrowMut<CapsFeaturesRef> for CapsFeatures
impl BorrowMut<CapsFeaturesRef> for CapsFeatures
sourcefn borrow_mut(&mut self) -> &mut CapsFeaturesRef
fn borrow_mut(&mut self) -> &mut CapsFeaturesRef
Mutably borrows from an owned value. Read more
sourceimpl Debug for CapsFeaturesRef
impl Debug for CapsFeaturesRef
sourceimpl Display for CapsFeaturesRef
impl Display for CapsFeaturesRef
sourceimpl<'a> Extend<&'a str> for CapsFeaturesRef
impl<'a> Extend<&'a str> for CapsFeaturesRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl Extend<Quark> for CapsFeaturesRef
impl Extend<Quark> for CapsFeaturesRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl Extend<String> for CapsFeaturesRef
impl Extend<String> for CapsFeaturesRef
sourcefn 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
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<'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.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'a> IntoIterator for &'a CapsFeaturesRef
impl<'a> IntoIterator for &'a CapsFeaturesRef
sourceimpl Serialize for CapsFeaturesRef
impl Serialize for CapsFeaturesRef
sourceimpl StaticType for CapsFeaturesRef
impl StaticType for CapsFeaturesRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for CapsFeaturesRef
impl ToOwned for CapsFeaturesRef
type Owned = CapsFeatures
type Owned = CapsFeatures
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> CapsFeatures
fn to_owned(&self) -> CapsFeatures
Creates owned data from borrowed data, usually by cloning. Read more
sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl ToValue for CapsFeaturesRef
impl ToValue for CapsFeaturesRef
sourceimpl ToValueOptional for CapsFeaturesRef
impl ToValueOptional for CapsFeaturesRef
sourcefn 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 RefUnwindSafe for CapsFeaturesRef
impl !Unpin for CapsFeaturesRef
impl UnwindSafe for CapsFeaturesRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.