Skip to main content

TagListRef

Struct TagListRef 

Source
pub struct TagListRef(/* private fields */);

Implementations§

Source§

impl TagListRef

Source

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

Source

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

Source

pub unsafe fn from_ptr<'a>(ptr: *const GstTagList) -> &'a Self

Source

pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstTagList) -> &'a mut Self

Source

pub fn copy(&self) -> TagList

Source

pub fn upcast_ref(&self) -> &MiniObjectRef

Source

pub fn upcast_mut(&mut self) -> &mut MiniObjectRef

Source

pub fn ptr_eq(this: &TagListRef, other: &TagListRef) -> bool

Source

pub fn mark_may_be_leaked(&mut self)

Source§

impl TagListRef

Source

pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode)

Source

pub fn add_generic( &mut self, tag_name: impl IntoGStr, value: impl ToSendValue, mode: TagMergeMode, ) -> Result<(), TagError>

Source

pub fn add_value( &mut self, tag_name: impl IntoGStr, value: &SendValue, mode: TagMergeMode, ) -> Result<(), TagError>

Source

pub fn remove<'a, T: Tag<'a>>(&mut self)

Source

pub fn remove_generic(&mut self, tag_name: impl IntoGStr)

Source

pub fn get<'a, T: Tag<'a>>(&self) -> Option<TagValue<T::TagType>>

Source

pub fn generic(&self, tag_name: impl IntoGStr) -> Option<SendValue>

Source

pub fn n_tags(&self) -> usize

Source

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

Source

pub fn index<'a, T: Tag<'a>>( &'a self, idx: usize, ) -> Option<&'a TagValue<T::TagType>>

Source

pub fn index_generic( &self, tag_name: impl IntoGStr, idx: usize, ) -> Option<&SendValue>

Source

pub fn size<'a, T: Tag<'a>>(&self) -> usize

Source

pub fn size_by_name(&self, tag_name: impl IntoGStr) -> usize

Source

pub fn iter_tag<'a, T: Tag<'a>>(&'a self) -> TagIter<'a, T>

Source

pub fn iter_tag_generic<'a>(&'a self, tag_name: &'a GStr) -> GenericTagIter<'a>

Source

pub fn iter_generic(&self) -> GenericIter<'_>

Source

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

Source

pub fn insert(&mut self, other: &TagListRef, mode: TagMergeMode)

Source

pub fn merge(&self, other: &TagListRef, mode: TagMergeMode) -> TagList

Source

pub fn scope(&self) -> TagScope

Source

pub fn set_scope(&mut self, scope: TagScope)

Trait Implementations§

Source§

impl AsRef<TagListRef> for TagList

Source§

fn as_ref(&self) -> &TagListRef

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

impl Borrow<TagListRef> for TagList

Source§

fn borrow(&self) -> &TagListRef

Immutably borrows from an owned value. Read more
Source§

impl Debug for TagListRef

Source§

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

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

impl Display for TagListRef

Source§

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

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

impl Eq for TagListRef

Source§

impl<'a> FromValue<'a> for &'a TagListRef

Source§

type Checker = GenericValueTypeOrNoneChecker<&'a TagListRef>

Value type checker.
Source§

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

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

impl GlibPtrDefault for TagListRef

Source§

impl PartialEq for TagListRef

Source§

fn eq(&self, other: &TagListRef) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<TagList> for TagListRef

Source§

fn eq(&self, other: &TagList) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<TagListRef> for TagList

Source§

fn eq(&self, other: &TagListRef) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Send for TagListRef

Source§

impl Serialize for TagListRef

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 TagListRef

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Sync for TagListRef

Source§

impl ToOwned for TagListRef

Source§

type Owned = TagList

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> TagList

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

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> ToString for T
where T: Display + ?Sized,

Source§

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>,

Source§

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>,

Source§

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.