Struct froggy::Pointer [] [src]

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

A pointer to a component of type T. The component is guaranteed to be accessible for as long as this pointer is alive. You'd need a locked storage to access the data. The pointer also holds the storage alive and knows the index of the element to look up.

Methods

impl<T> Pointer<T>
[src]

Creates a new WeakPointer to this component.

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> PartialEq for Pointer<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> Drop for Pointer<T>
[src]

A method called when the value goes out of scope. Read more