Struct gstreamer::structure::StructureRef
source · #[repr(transparent)]pub struct StructureRef(GstStructure);
Tuple Fields§
§0: GstStructure
Implementations§
source§impl StructureRef
impl StructureRef
pub unsafe fn from_glib_borrow<'a>(ptr: *const GstStructure) -> &'a StructureRef
pub unsafe fn from_glib_borrow_mut<'a>( ptr: *mut GstStructure, ) -> &'a mut StructureRef
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T: FromValue<'a>>( &'a self, name: impl IntoGStr, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn get_optional<'a, T: FromValue<'a>>( &'a self, name: impl IntoGStr, ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn value( &self, name: impl IntoGStr, ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn get_optional_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark, ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn value_by_quark( &self, name: Quark, ) -> Result<&SendValue, GetError<Infallible>>
pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)
pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn name<'a>(&self) -> &'a GStr
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: impl IntoGStr)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: impl IntoGStr) -> bool
pub fn has_field_with_type(&self, field: impl IntoGStr, type_: Type) -> bool
pub fn has_field_by_quark(&self, field: Quark) -> bool
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
pub fn remove_field(&mut self, field: impl IntoGStr)
pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_> ⓘ
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>
pub fn n_fields(&self) -> u32
pub fn can_intersect(&self, other: &StructureRef) -> bool
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
pub fn is_subset(&self, superset: &StructureRef) -> bool
pub fn fixate(&mut self)
pub fn fixate_field(&mut self, name: impl IntoGStr) -> bool
pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool
pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr, ) -> bool
pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64, ) -> bool
pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction>, ) -> bool
pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32, ) -> bool
pub fn foreach<F: FnMut(Quark, &Value) -> ControlFlow<()>>( &self, func: F, ) -> bool
pub fn map_in_place<F: FnMut(Quark, &mut Value) -> ControlFlow<()>>( &mut self, func: F, ) -> bool
pub fn filter_map_in_place<F: FnMut(Quark, Value) -> Option<Value>>( &mut self, func: F, )
Trait Implementations§
source§impl AsMut<StructureRef> for BufferPoolConfigRef
impl AsMut<StructureRef> for BufferPoolConfigRef
source§fn as_mut(&mut self) -> &mut StructureRef
fn as_mut(&mut self) -> &mut StructureRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<StructureRef> for Structure
impl AsMut<StructureRef> for Structure
source§fn as_mut(&mut self) -> &mut StructureRef
fn as_mut(&mut self) -> &mut StructureRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<StructureRef> for BufferPoolConfigRef
impl AsRef<StructureRef> for BufferPoolConfigRef
source§fn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<StructureRef> for Structure
impl AsRef<StructureRef> for Structure
source§fn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<StructureRef> for Structure
impl Borrow<StructureRef> for Structure
source§fn borrow(&self) -> &StructureRef
fn borrow(&self) -> &StructureRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<StructureRef> for Structure
impl BorrowMut<StructureRef> for Structure
source§fn borrow_mut(&mut self) -> &mut StructureRef
fn borrow_mut(&mut self) -> &mut StructureRef
Mutably borrows from an owned value. Read more
source§impl Debug for StructureRef
impl Debug for StructureRef
source§impl Display for StructureRef
impl Display for StructureRef
source§impl<'a> Extend<(&'a GStr, SendValue)> for StructureRef
impl<'a> Extend<(&'a GStr, SendValue)> for StructureRef
source§fn extend<T: IntoIterator<Item = (&'a GStr, SendValue)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (&'a GStr, SendValue)>>(&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, SendValue)> for StructureRef
impl<'a> Extend<(&'a str, SendValue)> for StructureRef
source§fn extend<T: IntoIterator<Item = (&'a str, SendValue)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (&'a str, SendValue)>>(&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, SendValue)> for StructureRef
impl Extend<(GString, SendValue)> for StructureRef
source§fn extend<T: IntoIterator<Item = (GString, SendValue)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (GString, SendValue)>>(&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, SendValue)> for StructureRef
impl Extend<(Quark, SendValue)> for StructureRef
source§fn extend<T: IntoIterator<Item = (Quark, SendValue)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (Quark, SendValue)>>(&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, SendValue)> for StructureRef
impl Extend<(String, SendValue)> for StructureRef
source§fn extend<T: IntoIterator<Item = (String, SendValue)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (String, SendValue)>>(&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 StructureRef
impl<'a> FromValue<'a> for &'a StructureRef
source§type Checker = GenericValueTypeOrNoneChecker<&'a StructureRef>
type Checker = GenericValueTypeOrNoneChecker<&'a StructureRef>
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 StructureRef
impl<'a> IntoIterator for &'a StructureRef
source§impl PartialEq<Structure> for StructureRef
impl PartialEq<Structure> for StructureRef
source§impl PartialEq<StructureRef> for Structure
impl PartialEq<StructureRef> for Structure
source§impl PartialEq for StructureRef
impl PartialEq for StructureRef
source§impl StaticType for StructureRef
impl StaticType for StructureRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for StructureRef
impl ToOwned for StructureRef
source§impl ToValue for StructureRef
impl ToValue for StructureRef
source§impl ToValueOptional for StructureRef
impl ToValueOptional for StructureRef
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.impl Eq for StructureRef
impl Send for StructureRef
impl Sync for StructureRef
Auto Trait Implementations§
impl Freeze for StructureRef
impl RefUnwindSafe for StructureRef
impl Unpin for StructureRef
impl UnwindSafe for StructureRef
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
.