Struct oaidl::Ptr[][src]

pub struct Ptr<T> { /* fields omitted */ }

Convenience type for holding value of *mut T Mostly just a projection of NonNull<T> functionality

Methods

impl<T> Ptr<T>
[src]

Wraps a valid NonNull<T>

Checks a *mut T for null and wraps it up for easier handling.

Get inner ptr

Get inner reference

Cast a Ptr<T> to Ptr<U>

Trait Implementations

impl SafeArrayElement for Ptr<IDispatch>
[src]

SFTYPE: u32 = VT_DISPATCH

This is the VT value used to create the SAFEARRAY

gets a type from the safearray at the specified index (default impls use SafeArrayGetElement)

puts a type into the safearray at the specified index (default impls use SafeArrayPutElement)

impl SafeArrayElement for Ptr<IUnknown>
[src]

SFTYPE: u32 = VT_UNKNOWN

This is the VT value used to create the SAFEARRAY

gets a type from the safearray at the specified index (default impls use SafeArrayGetElement)

puts a type into the safearray at the specified index (default impls use SafeArrayPutElement)

impl<T: Debug> Debug for Ptr<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for Ptr<T>
[src]

impl<T: Hash> Hash for Ptr<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialOrd> PartialOrd for Ptr<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: PartialEq> PartialEq for Ptr<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Copy> Copy for Ptr<T>
[src]

impl<T: Clone> Clone for Ptr<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Pointer for Ptr<T>
[src]

Formats the value using the given formatter.

impl<T> From<NonNull<T>> for Ptr<T>
[src]

Performs the conversion.

impl<T> Into<NonNull<T>> for Ptr<T>
[src]

Performs the conversion.

impl<T> AsRef<T> for Ptr<T>
[src]

Performs the conversion.

impl VariantExt for Ptr<IUnknown>
[src]

VARTYPE: u32 = VT_UNKNOWN

VARTYPE constant value for the type

Call this associated function on a Ptr to obtain a value T

Convert a value of type T into a Ptr

impl VariantExt for Ptr<IDispatch>
[src]

VARTYPE: u32 = VT_DISPATCH

VARTYPE constant value for the type

Call this associated function on a Ptr to obtain a value T

Convert a value of type T into a Ptr

impl VariantExt for Ptr<c_void>
[src]

VARTYPE: u32 = VT_BYREF

VARTYPE constant value for the type

Call this associated function on a Ptr to obtain a value T

Convert a value of type T into a Ptr

Auto Trait Implementations

impl<T> !Send for Ptr<T>

impl<T> !Sync for Ptr<T>