Struct cell_gc::ptr::UntypedPointer [] [src]

pub struct UntypedPointer(_);

Similar to Pointer<T> but provides no guarantees other than that it points to some allocation inside the GC heap, and has the minimal GC-required alignment.

Safety

See Pointer<T>.

Methods

impl UntypedPointer
[src]

Convert this UntypedPointer into a Pointer<T>.

Safety

You had better be damn sure that this pointer points at a T instance. See also the Pointer<T> safety rules and its new method's safety rules.

Is this pointer null?

Get the underlying raw pointer.

Get the underlying raw pointer as a usize.

Trait Implementations

impl<T> From<Pointer<T>> for UntypedPointer
[src]

Performs the conversion.

impl Clone for UntypedPointer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for UntypedPointer
[src]

impl Debug for UntypedPointer
[src]

Formats the value using the given formatter.

impl Eq for UntypedPointer
[src]

impl PartialEq for UntypedPointer
[src]

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

This method tests for !=.

impl Hash for UntypedPointer
[src]

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

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

impl PartialOrd for UntypedPointer
[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 Ord for UntypedPointer
[src]

This method returns an Ordering between self and other. Read more