gstreamer::miniobject

Struct MiniObject

Source
#[repr(transparent)]
pub struct MiniObject { obj: NonNull<GstMiniObject>, }

Fields§

§obj: NonNull<GstMiniObject>

Implementations§

Source§

impl MiniObject

Source

pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstMiniObject) -> &Self

Source

pub unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self

Source

pub unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self

Source

pub unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>

Source

pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMiniObject)

Source

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

Source

pub fn get_mut(&mut self) -> Option<&mut MiniObjectRef>

Source

pub fn is_writable(&self) -> bool

Source

pub fn upcast(self) -> MiniObject

Source§

impl MiniObject

Source

pub fn downcast<T: IsMiniObject + StaticType>(self) -> Result<T, Self>

Methods from Deref<Target = MiniObjectRef>§

Source

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

Source

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

Source

pub fn copy(&self) -> MiniObject

Source

pub fn upcast_ref(&self) -> &MiniObjectRef

Source

pub fn type_(&self) -> Type

Source

pub fn downcast_ref<T: IsMiniObject + StaticType>(&self) -> Option<&T::RefType>

Trait Implementations§

Source§

impl AsRef<MiniObjectRef> for MiniObject

Source§

fn as_ref(&self) -> &MiniObjectRef

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

impl Borrow<MiniObjectRef> for MiniObject

Source§

fn borrow(&self) -> &MiniObjectRef

Immutably borrows from an owned value. Read more
Source§

impl Clone for MiniObject

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MiniObject

Source§

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

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

impl Deref for MiniObject

Source§

type Target = MiniObjectRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Drop for MiniObject

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl FromGlibContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject

Source§

impl FromGlibContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject

Source§

impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject

Source§

impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject

Source§

impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject

Source§

impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject

Source§

impl FromGlibPtrFull<*const GstMiniObject> for MiniObject

Source§

impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject

Source§

impl FromGlibPtrNone<*const GstMiniObject> for MiniObject

Source§

impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject

Source§

impl GlibPtrDefault for MiniObject

Source§

impl IntoGlibPtr<*mut GstMiniObject> for MiniObject

Source§

unsafe fn into_glib_ptr(self) -> *mut GstMiniObject

Transfer: full.
Source§

impl IsMiniObject for MiniObject

Source§

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject

Source§

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject

Source§

impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject

Source§

type Storage = PhantomData<&'a MiniObject>

Source§

fn to_glib_none(&'a self) -> Stash<'a, *const GstMiniObject, Self>

Transfer: none. Read more
Source§

fn to_glib_full(&self) -> *const GstMiniObject

Transfer: full. Read more
Source§

fn to_glib_container(&'a self) -> Stash<'a, P, Self>

Transfer: container. Read more
Source§

impl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject

Source§

type Storage = PhantomData<&'a MiniObject>

Source§

fn to_glib_none(&'a self) -> Stash<'a, *mut GstMiniObject, Self>

Transfer: none. Read more
Source§

fn to_glib_full(&self) -> *mut GstMiniObject

Transfer: full. Read more
Source§

fn to_glib_container(&'a self) -> Stash<'a, P, Self>

Transfer: container. Read more
Source§

impl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject

Source§

type Storage = PhantomData<&'a mut MiniObject>

Source§

fn to_glib_none_mut(&mut self) -> StashMut<'_, *mut GstMiniObject, Self>

Transfer: none. Read more
Source§

impl Send for MiniObject

Source§

impl Sync for MiniObject

Source§

impl TransparentPtrType for MiniObject

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> TransparentType for T

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.