Struct gstreamer::structure::StructureRef [−][src]
#[repr(transparent)]pub struct StructureRef(_);
Implementations
impl StructureRef
[src]
impl StructureRef
[src]pub unsafe fn from_glib_borrow<'a>(ptr: *const GstStructure) -> &'a StructureRef
[src]
pub unsafe fn from_glib_borrow_mut<'a>(
ptr: *mut GstStructure
) -> &'a mut StructureRef
[src]
ptr: *mut GstStructure
) -> &'a mut StructureRef
pub unsafe fn as_ptr(&self) -> *const GstStructure
[src]
pub unsafe fn as_mut_ptr(&self) -> *mut GstStructure
[src]
pub fn get<'a, T: FromValue<'a>>(&'a self, name: &str) -> Result<T, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
[src]
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn get_optional<'a, T: FromValue<'a>>(
&'a self,
name: &str
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
[src]
&'a self,
name: &str
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn value(&self, name: &str) -> Result<&SendValue, GetError>
[src]
pub fn get_by_quark<'a, T: FromValue<'a>>(
&'a self,
name: Quark
) -> Result<T, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
[src]
&'a self,
name: Quark
) -> Result<T, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn get_optional_by_quark<'a, T: FromValue<'a>>(
&'a self,
name: Quark
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
[src]
&'a self,
name: Quark
) -> Result<Option<T>, GetError> where
<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError,
pub fn value_by_quark(&self, name: Quark) -> Result<&SendValue, GetError>
[src]
pub fn set<T: ToSendValue + Sync>(&mut self, name: &str, value: T)
[src]
pub fn set_value(&mut self, name: &str, value: SendValue)
[src]
pub fn set_by_quark<T: ToSendValue + Sync>(&mut self, name: Quark, value: T)
[src]
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
[src]
pub fn name<'a>(&self) -> &'a str
[src]
pub fn name_quark(&self) -> Quark
[src]
pub fn set_name(&mut self, name: &str)
[src]
pub fn has_field(&self, field: &str) -> bool
[src]
pub fn has_field_with_type(&self, field: &str, type_: Type) -> bool
[src]
pub fn has_field_by_quark(&self, field: Quark) -> bool
[src]
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
[src]
pub fn remove_field(&mut self, field: &str)
[src]
pub fn remove_fields(&mut self, fields: &[&str])
[src]
pub fn remove_all_fields(&mut self)
[src]
pub fn fields(&self) -> FieldIterator<'_>ⓘNotable traits for FieldIterator<'a>
impl<'a> Iterator for FieldIterator<'a> type Item = &'static str;
[src]
Notable traits for FieldIterator<'a>
impl<'a> Iterator for FieldIterator<'a> type Item = &'static str;
pub fn iter(&self) -> Iter<'_>ⓘ
[src]
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a str>
[src]
pub fn n_fields(&self) -> u32
[src]
pub fn can_intersect(&self, other: &StructureRef) -> bool
[src]
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
[src]
pub fn is_subset(&self, superset: &StructureRef) -> bool
[src]
pub fn fixate(&mut self)
[src]
pub fn fixate_field(&mut self, name: &str) -> bool
[src]
pub fn fixate_field_bool(&mut self, name: &str, target: bool) -> bool
[src]
pub fn fixate_field_str(&mut self, name: &str, target: &str) -> bool
[src]
pub fn fixate_field_nearest_double(&mut self, name: &str, target: f64) -> bool
[src]
pub fn fixate_field_nearest_fraction<T: Into<Fraction>>(
&mut self,
name: &str,
target: T
) -> bool
[src]
&mut self,
name: &str,
target: T
) -> bool
pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool
[src]
Trait Implementations
impl AsMut<StructureRef> for Structure
[src]
impl AsMut<StructureRef> for Structure
[src]fn as_mut(&mut self) -> &mut StructureRef
[src]
fn as_mut(&mut self) -> &mut StructureRef
[src]Performs the conversion.
impl AsMut<StructureRef> for BufferPoolConfig
[src]
impl AsMut<StructureRef> for BufferPoolConfig
[src]fn as_mut(&mut self) -> &mut StructureRef
[src]
fn as_mut(&mut self) -> &mut StructureRef
[src]Performs the conversion.
impl AsRef<StructureRef> for Structure
[src]
impl AsRef<StructureRef> for Structure
[src]fn as_ref(&self) -> &StructureRef
[src]
fn as_ref(&self) -> &StructureRef
[src]Performs the conversion.
impl AsRef<StructureRef> for BufferPoolConfig
[src]
impl AsRef<StructureRef> for BufferPoolConfig
[src]fn as_ref(&self) -> &StructureRef
[src]
fn as_ref(&self) -> &StructureRef
[src]Performs the conversion.
impl Borrow<StructureRef> for Structure
[src]
impl Borrow<StructureRef> for Structure
[src]fn borrow(&self) -> &StructureRef
[src]
fn borrow(&self) -> &StructureRef
[src]Immutably borrows from an owned value. Read more
impl BorrowMut<StructureRef> for Structure
[src]
impl BorrowMut<StructureRef> for Structure
[src]fn borrow_mut(&mut self) -> &mut StructureRef
[src]
fn borrow_mut(&mut self) -> &mut StructureRef
[src]Mutably borrows from an owned value. Read more
impl Debug for StructureRef
[src]
impl Debug for StructureRef
[src]impl Display for StructureRef
[src]
impl Display for StructureRef
[src]impl<'a> FromValue<'a> for &'a StructureRef
[src]
impl<'a> FromValue<'a> for &'a StructureRef
[src]type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl PartialEq<StructureRef> for Structure
[src]
impl PartialEq<StructureRef> for Structure
[src]impl PartialEq<StructureRef> for StructureRef
[src]
impl PartialEq<StructureRef> for StructureRef
[src]impl Serialize for StructureRef
[src]
impl Serialize for StructureRef
[src]impl StaticType for StructureRef
[src]
impl StaticType for StructureRef
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl ToOwned for StructureRef
[src]
impl ToOwned for StructureRef
[src]fn to_owned(&self) -> Structure
[src]
fn to_owned(&self) -> Structure
[src]Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl ToValue for StructureRef
[src]
impl ToValue for StructureRef
[src]impl ToValueOptional for StructureRef
[src]
impl ToValueOptional for StructureRef
[src]fn to_value_optional(s: Option<&Self>) -> Value
[src]
fn to_value_optional(s: Option<&Self>) -> Value
[src]Convert an Option
to a Value
.
impl Eq for StructureRef
[src]
impl Send for StructureRef
[src]
impl Sync for StructureRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.