Struct gstreamer::tags::TagListRef
source · pub struct TagListRef(/* private fields */);
Implementations§
source§impl TagListRef
impl TagListRef
pub fn as_ptr(&self) -> *const GstTagList
pub fn as_mut_ptr(&self) -> *mut GstTagList
pub unsafe fn from_ptr<'a>(ptr: *const GstTagList) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstTagList) -> &'a mut Self
pub fn copy(&self) -> TagList
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &TagListRef, other: &TagListRef) -> bool
source§impl TagListRef
impl TagListRef
pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode)
pub fn add_generic( &mut self, tag_name: impl IntoGStr, value: impl ToSendValue, mode: TagMergeMode, ) -> Result<(), TagError>
pub fn add_value( &mut self, tag_name: impl IntoGStr, value: &SendValue, mode: TagMergeMode, ) -> Result<(), TagError>
pub fn remove<'a, T: Tag<'a>>(&mut self)
pub fn remove_generic(&mut self, tag_name: impl IntoGStr)
pub fn get<'a, T: Tag<'a>>(&self) -> Option<TagValue<T::TagType>>
pub fn generic(&self, tag_name: impl IntoGStr) -> Option<SendValue>
pub fn nth_tag_name(&self, idx: usize) -> Option<&GStr>
pub fn index<'a, T: Tag<'a>>( &self, idx: usize, ) -> Option<&'a TagValue<T::TagType>>
pub fn index_generic( &self, tag_name: impl IntoGStr, idx: usize, ) -> Option<&SendValue>
pub fn size<'a, T: Tag<'a>>(&self) -> usize
pub fn size_by_name(&self, tag_name: impl IntoGStr) -> usize
pub fn iter_tag<'a, T: Tag<'a>>(&'a self) -> TagIter<'a, T> ⓘ
pub fn iter_tag_generic(&self, tag_name: impl IntoGStr) -> GenericTagIter<'_> ⓘ
pub fn iter_generic(&self) -> GenericIter<'_> ⓘ
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn insert(&mut self, other: &TagListRef, mode: TagMergeMode)
pub fn merge(&self, other: &TagListRef, mode: TagMergeMode) -> TagList
pub fn scope(&self) -> TagScope
pub fn set_scope(&mut self, scope: TagScope)
Trait Implementations§
source§impl AsRef<TagListRef> for TagList
impl AsRef<TagListRef> for TagList
source§fn as_ref(&self) -> &TagListRef
fn as_ref(&self) -> &TagListRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<TagListRef> for TagList
impl Borrow<TagListRef> for TagList
source§fn borrow(&self) -> &TagListRef
fn borrow(&self) -> &TagListRef
Immutably borrows from an owned value. Read more
source§impl Debug for TagListRef
impl Debug for TagListRef
source§impl Display for TagListRef
impl Display for TagListRef
source§impl<'a> FromValue<'a> for &'a TagListRef
impl<'a> FromValue<'a> for &'a TagListRef
§type Checker = GenericValueTypeOrNoneChecker<&'a TagListRef>
type Checker = GenericValueTypeOrNoneChecker<&'a TagListRef>
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 GlibPtrDefault for TagListRef
impl GlibPtrDefault for TagListRef
type GlibType = *mut GstTagList
source§impl PartialEq<TagList> for TagListRef
impl PartialEq<TagList> for TagListRef
source§impl PartialEq<TagListRef> for TagList
impl PartialEq<TagListRef> for TagList
source§fn eq(&self, other: &TagListRef) -> bool
fn eq(&self, other: &TagListRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for TagListRef
impl PartialEq for TagListRef
source§fn eq(&self, other: &TagListRef) -> bool
fn eq(&self, other: &TagListRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TagListRef
impl Serialize for TagListRef
source§impl StaticType for TagListRef
impl StaticType for TagListRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for TagListRef
impl ToOwned for TagListRef
impl Eq for TagListRef
impl Send for TagListRef
impl Sync for TagListRef
Auto Trait Implementations§
impl Freeze for TagListRef
impl RefUnwindSafe for TagListRef
impl Unpin for TagListRef
impl UnwindSafe for TagListRef
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.