Struct gstreamer::miniobject::MiniObjectRef
source · [−]#[repr(transparent)]pub struct MiniObjectRef(_);
Implementations
sourceimpl MiniObjectRef
impl MiniObjectRef
pub unsafe fn as_ptr(&self) -> *const GstMiniObject
pub unsafe fn as_mut_ptr(&self) -> *mut GstMiniObject
pub unsafe fn from_ptr<'a>(ptr: *const GstMiniObject) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstMiniObject) -> &'a mut Self
pub fn copy(&self) -> MiniObject
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
sourceimpl MiniObjectRef
impl MiniObjectRef
pub fn type_(&self) -> Type
pub fn downcast_ref<T: IsMiniObject + StaticType>(&self) -> Option<&T::RefType>
pub fn downcast_mut<T: IsMiniObject + StaticType>(
&mut self
) -> Option<&mut T::RefType>
Trait Implementations
sourceimpl AsRef<MiniObjectRef> for MiniObject
impl AsRef<MiniObjectRef> for MiniObject
sourcefn as_ref(&self) -> &MiniObjectRef
fn as_ref(&self) -> &MiniObjectRef
Converts this type into a shared reference of the (usually inferred) input type.
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 Debug for MiniObjectRef
impl Debug for MiniObjectRef
sourceimpl<'a> FromValue<'a> for &'a MiniObjectRef
impl<'a> FromValue<'a> for &'a MiniObjectRef
type Checker = GenericValueTypeOrNoneChecker<&'a MiniObjectRef>
type Checker = GenericValueTypeOrNoneChecker<&'a MiniObjectRef>
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 MiniObjectRef
impl GlibPtrDefault for MiniObjectRef
type GlibType = *mut GstMiniObject
sourceimpl StaticType for MiniObjectRef
impl StaticType for MiniObjectRef
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToOwned for MiniObjectRef
impl ToOwned for MiniObjectRef
type Owned = MiniObject
type Owned = MiniObject
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> MiniObject
fn to_owned(&self) -> MiniObject
Creates owned data from borrowed data, usually by cloning. Read more
sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for MiniObjectRef
impl Sync for MiniObjectRef
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 · sourcefn borrow_mut(&mut self) -> &mut T
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,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.