Struct gstreamer::miniobject::MiniObject
source · #[repr(transparent)]pub struct MiniObject {
obj: NonNull<GstMiniObject>,
}
Fields§
§obj: NonNull<GstMiniObject>
Implementations§
source§impl MiniObject
impl MiniObject
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GstMiniObject, ) -> &'a Self
pub unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
pub unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMiniObject)
pub fn make_mut(&mut self) -> &mut MiniObjectRef
pub fn get_mut(&mut self) -> Option<&mut MiniObjectRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
source§impl MiniObject
impl MiniObject
pub fn downcast<T: IsMiniObject + StaticType>(self) -> Result<T, Self>
Methods from Deref<Target = MiniObjectRef>§
pub fn as_ptr(&self) -> *const GstMiniObject
pub fn as_mut_ptr(&self) -> *mut GstMiniObject
pub fn copy(&self) -> MiniObject
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn type_(&self) -> Type
pub fn downcast_ref<T: IsMiniObject + StaticType>(&self) -> Option<&T::RefType>
Trait Implementations§
source§impl AsRef<MiniObjectRef> for MiniObject
impl AsRef<MiniObjectRef> for MiniObject
source§fn as_ref(&self) -> &MiniObjectRef
fn as_ref(&self) -> &MiniObjectRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<MiniObjectRef> for MiniObject
impl Borrow<MiniObjectRef> for MiniObject
source§fn borrow(&self) -> &MiniObjectRef
fn borrow(&self) -> &MiniObjectRef
Immutably borrows from an owned value. Read more
source§impl Clone for MiniObject
impl Clone for MiniObject
source§impl Debug for MiniObject
impl Debug for MiniObject
source§impl Deref for MiniObject
impl Deref for MiniObject
source§impl Drop for MiniObject
impl Drop for MiniObject
source§impl FromGlibContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
impl FromGlibContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_num_as_vec( ptr: *const *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( _: *const *mut GstMiniObject, _: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( _: *const *mut GstMiniObject, _: usize, ) -> Vec<Self>
source§impl FromGlibContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
impl FromGlibContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( ptr: *mut *mut GstMiniObject, num: usize, ) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *const *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_container_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_full_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
impl FromGlibPtrArrayContainerAsVec<*mut GstMiniObject, *mut *mut GstMiniObject> for MiniObject
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>
source§impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstMiniObject> for MiniObject
impl FromGlibPtrFull<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstMiniObject> for MiniObject
impl FromGlibPtrNone<*const GstMiniObject> for MiniObject
source§unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
source§unsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
Safety Read more
source§impl GlibPtrDefault for MiniObject
impl GlibPtrDefault for MiniObject
type GlibType = *mut GstMiniObject
source§impl IntoGlibPtr<*mut GstMiniObject> for MiniObject
impl IntoGlibPtr<*mut GstMiniObject> for MiniObject
source§unsafe fn into_glib_ptr(self) -> *mut GstMiniObject
unsafe fn into_glib_ptr(self) -> *mut GstMiniObject
Transfer: full.
source§impl IsMiniObject for MiniObject
impl IsMiniObject for MiniObject
type RefType = MiniObjectRef
type FfiType = GstMiniObject
source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
type Storage = (PhantomData<&'a [MiniObject]>, Option<Vec<*mut GstMiniObject>>)
fn to_glib_none_from_slice( t: &'a [MiniObject], ) -> (*const *mut GstMiniObject, Self::Storage)
fn to_glib_container_from_slice( _: &'a [MiniObject], ) -> (*const *mut GstMiniObject, Self::Storage)
fn to_glib_full_from_slice(_: &[MiniObject]) -> *const *mut GstMiniObject
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
type Storage = (PhantomData<&'a [MiniObject]>, Option<Vec<*mut GstMiniObject>>)
fn to_glib_none_from_slice( t: &'a [MiniObject], ) -> (*mut *mut GstMiniObject, Self::Storage)
fn to_glib_container_from_slice( t: &'a [MiniObject], ) -> (*mut *mut GstMiniObject, Self::Storage)
fn to_glib_full_from_slice(t: &[MiniObject]) -> *mut *mut GstMiniObject
source§impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
type Storage = PhantomData<&'a MiniObject>
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstMiniObject, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstMiniObject, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstMiniObject
fn to_glib_full(&self) -> *const GstMiniObject
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject
type Storage = PhantomData<&'a MiniObject>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstMiniObject, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstMiniObject, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstMiniObject
fn to_glib_full(&self) -> *mut GstMiniObject
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject
impl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject
type Storage = PhantomData<&'a mut MiniObject>
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMiniObject, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMiniObject, Self>
Transfer: none. Read more
impl Send for MiniObject
impl Sync for MiniObject
impl TransparentPtrType for MiniObject
Auto Trait Implementations§
impl Freeze for MiniObject
impl RefUnwindSafe for MiniObject
impl Unpin for MiniObject
impl UnwindSafe for MiniObject
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
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 more