Struct gstreamer::miniobject::MiniObject
source · [−]#[repr(transparent)]pub struct MiniObject { /* private fields */ }
Implementations
sourceimpl MiniObject
impl MiniObject
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
pub unsafe fn into_ptr(self) -> *mut GstMiniObject
sourceimpl MiniObject
impl MiniObject
pub fn downcast<T: IsMiniObject + StaticType>(self) -> Result<T, Self>
Methods from Deref<Target = MiniObjectRef>
pub unsafe fn as_ptr(&self) -> *const GstMiniObject
pub unsafe 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
sourceimpl AsRef<MiniObjectRef> for MiniObject
impl AsRef<MiniObjectRef> for MiniObject
sourcefn as_ref(&self) -> &MiniObjectRef
fn as_ref(&self) -> &MiniObjectRef
Performs the conversion.
sourceimpl Borrow<MiniObjectRef> for MiniObject
impl Borrow<MiniObjectRef> for MiniObject
sourcefn borrow(&self) -> &MiniObjectRef
fn borrow(&self) -> &MiniObjectRef
Immutably borrows from an owned value. Read more
sourceimpl Clone for MiniObject
impl Clone for MiniObject
sourceimpl Debug for MiniObject
impl Debug for MiniObject
sourceimpl Deref for MiniObject
impl Deref for MiniObject
type Target = MiniObjectRef
type Target = MiniObjectRef
The resulting type after dereferencing.
sourceimpl Drop for MiniObject
impl Drop for MiniObject
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstMiniObject,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstMiniObject,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstMiniObject,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstMiniObject,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(_: *const *mut GstMiniObject) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl 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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstMiniObject) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*const GstMiniObject> for MiniObject
sourceunsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstMiniObject) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
impl FromGlibPtrBorrow<*mut GstMiniObject> for MiniObject
sourceunsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstMiniObject) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrFull<*const GstMiniObject> for MiniObject
impl FromGlibPtrFull<*const GstMiniObject> for MiniObject
sourceunsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *const GstMiniObject) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
impl FromGlibPtrFull<*mut GstMiniObject> for MiniObject
sourceunsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_full(ptr: *mut GstMiniObject) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstMiniObject> for MiniObject
impl FromGlibPtrNone<*const GstMiniObject> for MiniObject
sourceunsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *const GstMiniObject) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
impl FromGlibPtrNone<*mut GstMiniObject> for MiniObject
sourceunsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
unsafe fn from_glib_none(ptr: *mut GstMiniObject) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for MiniObject
impl<'a> FromValue<'a> for MiniObject
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'a> FromValue<'a> for &'a MiniObject
impl<'a> FromValue<'a> for &'a MiniObject
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl GlibPtrDefault for MiniObject
impl GlibPtrDefault for MiniObject
type GlibType = *mut GstMiniObject
sourceimpl IsMiniObject for MiniObject
impl IsMiniObject for MiniObject
type RefType = MiniObjectRef
type FfiType = GstMiniObject
sourceimpl StaticType for MiniObject
impl StaticType for MiniObject
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMiniObject> for MiniObject
type Storage = (Vec<Stash<'a, *mut GstMiniObject, 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
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMiniObject> for MiniObject
type Storage = (Vec<Stash<'a, *mut GstMiniObject, Self>>, 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
sourceimpl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *const GstMiniObject> for MiniObject
type Storage = &'a Self
sourcefn 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
sourcefn to_glib_full(&self) -> *const GstMiniObject
fn to_glib_full(&self) -> *const GstMiniObject
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject
impl<'a> ToGlibPtr<'a, *mut GstMiniObject> for MiniObject
type Storage = &'a Self
sourcefn 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
sourcefn to_glib_full(&self) -> *mut GstMiniObject
fn to_glib_full(&self) -> *mut GstMiniObject
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject
impl<'a> ToGlibPtrMut<'a, *mut GstMiniObject> for MiniObject
type Storage = &'a mut Self
sourcefn 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
sourceimpl ToValue for MiniObject
impl ToValue for MiniObject
sourceimpl ToValueOptional for MiniObject
impl ToValueOptional for MiniObject
sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option
to a Value
.
sourceimpl ValueType for MiniObject
impl ValueType for MiniObject
impl Send for MiniObject
impl Sync for MiniObject
impl ValueTypeOptional for MiniObject
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcepub fn ensure_type()
pub fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
pub fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcepub fn to_send_value(&self) -> SendValue
pub fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.