Struct glib_signal::Pointer

source ·
#[repr(transparent)]
pub struct Pointer<T>(pub *mut T);

Tuple Fields§

§0: *mut T

Implementations§

source§

impl<T> Pointer<T>

source

pub fn as_ptr_mut(&self) -> *mut T

source

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

source

pub fn into_inner(self) -> *mut T

Trait Implementations§

source§

impl<T: Clone> Clone for Pointer<T>

source§

fn clone(&self) -> Pointer<T>

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<T: Debug> Debug for Pointer<T>

source§

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

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

impl<T> Deref for Pointer<T>

§

type Target = *mut T

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl<T> From<*mut T> for Pointer<T>

source§

fn from(ptr: *mut T) -> Self

Converts to this type from the input type.
source§

impl<'a, T> FromValue<'a> for Pointer<T>

§

type Checker = GenericValueTypeChecker<Pointer<T>>

Value type checker.
source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
source§

impl<T> Into<*const T> for Pointer<T>

source§

fn into(self) -> *const T

Converts this type into the (usually inferred) input type.
source§

impl<T> Into<*mut T> for Pointer<T>

source§

fn into(self) -> *mut T

Converts this type into the (usually inferred) input type.
source§

impl<T> StaticType for Pointer<T>

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl<T: Copy> Copy for Pointer<T>

Auto Trait Implementations§

§

impl<T> Freeze for Pointer<T>

§

impl<T> RefUnwindSafe for Pointer<T>
where T: RefUnwindSafe,

§

impl<T> !Send for Pointer<T>

§

impl<T> !Sync for Pointer<T>

§

impl<T> Unpin for Pointer<T>

§

impl<T> UnwindSafe for Pointer<T>
where T: RefUnwindSafe,

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

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

§

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, U> TryFrom<U> for T
where U: Into<T>,

§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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.